Skip to content

Commit

Permalink
ATOR-415 - Fix onionperf null string
Browse files Browse the repository at this point in the history
  • Loading branch information
yumirkov committed Aug 27, 2024
1 parent cda5af3 commit 05c0950
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ private <T extends Document> T retrieveParsedDocumentFile(
Class<T> documentType, String documentString) {
T result = null;
try {
if (!documentString.isEmpty() && !documentString.equals("{}")) {
if (documentString != null && !documentString.isEmpty() && !documentString.equals("{}")) {
result = objectMapper.readValue(documentString, documentType);
}
} catch (Throwable e) {
Expand Down

0 comments on commit 05c0950

Please sign in to comment.