Skip to content

Commit

Permalink
Fix null exception in RevocationReason
Browse files Browse the repository at this point in the history
  • Loading branch information
fmarco76 committed Sep 7, 2023
1 parent 3ad5bb6 commit fc34a1a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ public static RevocationReason valueOf(int reason) {
}

public static RevocationReason valueOf(String string) {
if (string == null) {
return null;
}
return LABELS.get(string.toLowerCase());
}

Expand Down

0 comments on commit fc34a1a

Please sign in to comment.