Skip to content
Snippets Groups Projects
Commit a36c0f11 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

message with context is resolved properly when there is no cause defined

parent f121e761
No related branches found
No related tags found
2 merge requests!630WIP: Resolve "The privileges of a new user are not saved in some cases",!443parsing error messages improved
Pipeline #6707 passed
......@@ -56,7 +56,13 @@ public abstract class CellDesignerParserException extends Exception {
}
public String getMessageWithContext() {
return getMessageContext() + " " + this.getCause().getMessage();
String message;
if (this.getCause() != null) {
message = this.getCause().getMessage();
} else {
message = this.getMessage();
}
return getMessageContext() + " " + message;
}
public abstract String getMessageContext();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment