Skip to content

Commit

Permalink
JNG-2519: fix NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
borcsokj committed Feb 12, 2021
1 parent cea28b8 commit fd2e7e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/hu/blackbelt/judo/dao/api/Payload.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
public interface Payload extends Map<String, Object> {

static Payload asPayload(Map<String, Object> objectMap) {
return new PayloadImpl(objectMap);
return objectMap != null ? new PayloadImpl(objectMap) : null;
}

static Payload empty() {
Expand Down

0 comments on commit fd2e7e5

Please sign in to comment.