Skip to content

Commit 9b2c0b4

Browse files
committed
Fix NullPointerException
1 parent 827c50a commit 9b2c0b4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/org/scijava/ops/matcher/OpRef.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,12 @@ public String toString() {
168168
n += "Input Types: \n";
169169
for (Type arg : args) {
170170
n += "\t\t* ";
171-
n += arg.getTypeName();
171+
n += arg == null ? "" : arg.getTypeName();
172172
n += "\n";
173173
}
174174
n += "Output Type: \n";
175175
n += "\t\t* ";
176-
n += outType.getTypeName();
176+
n += outType == null ? "" : outType.getTypeName();
177177
n += "\n";
178178
return n.substring(0, n.length() - 1);
179179
}

0 commit comments

Comments
 (0)