Skip to content

Commit

Permalink
check if the exception key does not have an empty value
Browse files Browse the repository at this point in the history
  • Loading branch information
MF-KYJKVZUPVATJ authored and MF-KYJKVZUPVATJ committed Jan 23, 2024
1 parent 1eac2fb commit 5583c77
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,9 @@ private Map<String, Value> runJavaAction(Map<String, SerializableSessionObject>
}

final Serializable exception = returnMap.get(EXCEPTION);
if (exception != null) {
// some java actions contain the exception key without having an actual exception
// this is because some actions have the output field named as "errorMessage", others "exception"
if (exception != null && StringUtils.isNotEmpty(exception.toString())) {
logException(exception.toString());
}

Expand Down

0 comments on commit 5583c77

Please sign in to comment.