Skip to content

Commit

Permalink
Fix NPE in Signature.toString()
Browse files Browse the repository at this point in the history
  • Loading branch information
karllessard committed Jul 12, 2021
1 parent e0e4545 commit 13cc616
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,9 @@ public Set<String> outputNames() {
@Override
public String toString() {
StringBuilder strBuilder = new StringBuilder("Signature for \"" + key +"\":\n");
if (!methodName().isEmpty()) {
strBuilder.append("\tMethod: \"").append(methodName()).append("\"\n");
String methodName = methodName();
if (methodName != null && !methodName.isEmpty()) {
strBuilder.append("\tMethod: \"").append(methodName).append("\"\n");
}
if (signatureDef.getInputsCount() > 0) {
strBuilder.append("\tInputs:\n");
Expand Down

0 comments on commit 13cc616

Please sign in to comment.