Skip to content

Commit 26f0053

Browse files
EditorConsole: Allow base to be null
This allows testing this class without going to a full initialization.
1 parent a83adae commit 26f0053

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: 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)