Skip to content

Commit d48914b

Browse files
committed
Only dispose if display was actually created
1 parent 8250e5a commit d48914b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/io/calimero/gui/Main.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,8 @@ public static void main(final String[] args)
188188
}
189189
finally {
190190
System.setErr(LogTab.oldSystemErr);
191-
display.dispose();
191+
if (display != null)
192+
display.dispose();
192193
}
193194
}
194195

0 commit comments

Comments
 (0)