mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 14:48:54 +08:00
fix java createActor NPE bug (#9532)
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user