Skip to content

Commit

Permalink
Fix NPE
Browse files Browse the repository at this point in the history
Cherry-pick of existing commit.
orig-pr: #18391
orig-commit: 420e560
orig-commit-author: elega <[email protected]>

			pr-link: #18396
			change-id: cid-24fcdc50fc0b6560f77c0f2f31ebadd78000bac8
  • Loading branch information
alluxio-bot authored Nov 8, 2023
1 parent 7aa43c3 commit 6fbc3cb
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

0 comments on commit 6fbc3cb

Please sign in to comment.