Skip to content

Commit

Permalink
Handle NubmerFormatException on rekor response
Browse files Browse the repository at this point in the history
Signed-off-by: Appu Goundan <[email protected]>
  • Loading branch information
loosebazooka committed Aug 4, 2023
1 parent 59dae85 commit 78db768
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ public static RekorResponse newRekorResponse(URI entryLocation, String rawRespon
Map<String, RekorEntry> entryMap;
try {
entryMap = GSON.get().fromJson(rawResponse, type);
} catch (JsonSyntaxException | NullPointerException | StringIndexOutOfBoundsException ex) {
} catch (JsonSyntaxException
| NullPointerException
| NumberFormatException
| StringIndexOutOfBoundsException ex) {
throw new RekorParseException("Rekor entry json could not be parsed: " + rawResponse, ex);
}
if (entryMap == null) {
Expand Down

0 comments on commit 78db768

Please sign in to comment.