Skip to content

Commit 64ed80a

Browse files
committed
Prevent InvocationTargetException when running processing-java
In this case, base is null.
1 parent d2565ce commit 64ed80a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/src/processing/app/Mode.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,9 @@ public void rebuildLibraryList() {
327327
// Make this Map thread-safe
328328
this.importToLibraryTable = Collections.unmodifiableMap(importToLibraryTable);
329329

330-
base.getEditors().forEach(Editor::librariesChanged);
330+
if (base != null) {
331+
base.getEditors().forEach(Editor::librariesChanged);
332+
}
331333
}
332334

333335

0 commit comments

Comments
 (0)