Skip to content

Commit

Permalink
prevent NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
terrywbrady committed Jun 14, 2024
1 parent f22370a commit 7422ca7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/org/cdlib/mrt/zk/QueueItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,9 @@ public void setStatus(ZooKeeper client, IngestState status, String message) thro
}
String statpath = makePath(ZKKey.STATUS);
JSONObject json = statusObject(status);
if (message == null) {
message = "";
}
if (!message.isEmpty()) {
json.put(MerrittJsonKey.Message.key(), message);
}
Expand Down

0 comments on commit 7422ca7

Please sign in to comment.