Skip to content

Commit 3e3f54c

Browse files
matthijskooijmanfacchinm
authored andcommitted
EditorConsole: Allow base to be null
This allows testing this class without going to a full initialization.
1 parent 9226619 commit 3e3f54c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/src/processing/app/EditorConsole.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ public EditorConsole(Base base) {
112112
EditorConsole.init(stdOutStyle, System.out, stdErrStyle, System.err);
113113

114114
// Add font size adjustment listeners.
115-
base.addEditorFontResizeListeners(consoleTextPane);
115+
if (base != null)
116+
base.addEditorFontResizeListeners(consoleTextPane);
116117
}
117118

118119
public void applyPreferences() {

0 commit comments

Comments
 (0)