diff --git a/dora/core/server/master/src/main/java/alluxio/master/job/LoadSubTask.java b/dora/core/server/master/src/main/java/alluxio/master/job/LoadSubTask.java index 834ab0e1ca4d..593f2b6fc111 100644 --- a/dora/core/server/master/src/main/java/alluxio/master/job/LoadSubTask.java +++ b/dora/core/server/master/src/main/java/alluxio/master/job/LoadSubTask.java @@ -106,10 +106,11 @@ public static LoadSubTask from(LoadFailure loadFailure, long virtualBlockSize) { @Override public String toString() { + WorkerInfo workerInfo = getWorkerInfo(); return MoreObjects.toStringHelper(this) .add("UfsPath", getUfsPath()) - .add("ShardingKey", mHashKey.asString()) - .add("Worker", getWorkerInfo().getAddress().toString()) + .add("ShardingKey", mHashKey == null ? null : mHashKey.asString()) + .add("Worker", workerInfo == null ? null : workerInfo.getAddress().toString()) .toString(); } }