Prevent InvocationTargetException when running processing-java

In this case, base is null.
This commit is contained in:
gohai
2016-05-09 09:23:08 +02:00
parent 241ff4045a
commit 87efb4b935
+3 -1
View File
@@ -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);
}
}