Skip to content

Commit

Permalink
fix: potential NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
metacosm committed Apr 28, 2021
1 parent 7647478 commit 090eed0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public UpdateControl<JokeRequest> createOrUpdateResource(JokeRequest jr, Context

// if the joke has already been created, ignore
JokeRequestStatus status = jr.getStatus();
if (status == null || State.CREATED == status.getState()) {
if (status != null && State.CREATED == status.getState()) {
return UpdateControl.noUpdate();
}

Expand Down

0 comments on commit 090eed0

Please sign in to comment.