mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Prevent InvocationTargetException when running processing-java
In this case, base is null.
This commit is contained in:
@@ -327,7 +327,9 @@ public abstract class Mode {
|
||||
// Make this Map thread-safe
|
||||
this.importToLibraryTable = Collections.unmodifiableMap(importToLibraryTable);
|
||||
|
||||
base.getEditors().forEach(Editor::librariesChanged);
|
||||
if (base != null) {
|
||||
base.getEditors().forEach(Editor::librariesChanged);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user