Skip to content

Commit

Permalink
NPE check get download by key
Browse files Browse the repository at this point in the history
  • Loading branch information
marcos-lg committed Sep 27, 2023
1 parent 96d0b96 commit 7932bf5
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,11 @@ public Download getByKey(
} else {
download = occurrenceDownloadMapper.get(key);
}

if (download == null) {
return null;
}

clearSensitiveData(authentication, download);
assertDownloadType(download);

Expand Down

0 comments on commit 7932bf5

Please sign in to comment.