Skip to content

Commit

Permalink
Merge pull request #236 from alcarraz/issue/avoid-npe-in-blexception-…
Browse files Browse the repository at this point in the history
…get-detailed-message

Avoid NPE in BLException.getDetailedMessage.
  • Loading branch information
ar authored Jan 7, 2022
2 parents e86a7ac + f55e54b commit 7ab77b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/core/src/main/java/org/jpos/ee/BLException.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ public String getDetail () {
return detail;
}
public String getDetailedMessage () {
StringBuffer sb = new StringBuffer (getMessage());

StringBuffer sb = new StringBuffer ();
sb.append(getMessage());
if (detail != null) {
sb.append (" (");
sb.append (detail);
Expand Down

0 comments on commit 7ab77b5

Please # to comment.