gmunozfe commented on code in PR #3679:
URL: 
https://github.com/apache/incubator-kie-kogito-runtimes/pull/3679#discussion_r1771563334


##########
jbpm/jbpm-flow/src/main/java/org/jbpm/workflow/instance/impl/WorkflowProcessInstanceImpl.java:
##########
@@ -1163,8 +1163,7 @@ public void setErrorState(NodeInstance 
nodeInstanceInError, Exception e) {
         this.nodeIdInError = nodeInstanceInError.getNodeDefinitionId();
         this.nodeInstanceIdInError = nodeInstanceInError.getId();
         this.errorCause = Optional.of(e);
-        Throwable rootException = getRootException(e);
-        this.errorMessage = rootException.getClass().getCanonicalName() + " - 
" + rootException.getMessage();
+        this.errorMessage = getRootException(e).getMessage();

Review Comment:
   Previously if `getMessage` returned null, at least the concatenation with " 
- " converted to String, but not now.
   
   ```suggestion
           this.errorMessage = getRootException(e).getMessage() == null ? "" : 
getRootException(e).getMessage() ;
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to