mirror of
https://github.com/vale981/ray
synced 2025-03-05 18:11:42 -05:00
fix java createActor NPE bug (#9532)
This commit is contained in:
parent
94e94ae0c3
commit
008d973f62
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ public class NativeTaskSubmitter implements TaskSubmitter {
|
|||
@Override
|
||||
public BaseActorHandle createActor(FunctionDescriptor functionDescriptor, List<FunctionArg> args,
|
||||
ActorCreationOptions options) throws IllegalArgumentException {
|
||||
if (StringUtils.isNotBlank(options.name)) {
|
||||
if (options != null && StringUtils.isNotBlank(options.name)) {
|
||||
Optional<BaseActorHandle> actor =
|
||||
options.global ? Ray.getGlobalActor(options.name) : Ray.getActor(options.name);
|
||||
Preconditions.checkArgument(!actor.isPresent(),
|
||||
|
|
Loading…
Add table
Reference in a new issue