Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit

Permalink
Fix Error exception null value handling
Browse files Browse the repository at this point in the history
  • Loading branch information
firecast committed Oct 15, 2019
1 parent 9da39cb commit b423c91
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ public String getErrorSourceData(@NonNull final ErrorData errorData) {

@Override
public String getErrorException(@NonNull final ErrorData errorData) {
return errorData.getErrMessage();
String errorMessage = errorData.getErrMessage();
if (errorMessage != null) {
return errorMessage;
}
return "NA";
}
}

0 comments on commit b423c91

Please sign in to comment.