Skip to content

Commit

Permalink
EditorConsole: Allow base to be null
Browse files Browse the repository at this point in the history
This allows testing this class without going to a full initialization.
  • Loading branch information
matthijskooijman authored and facchinm committed May 12, 2020
1 parent 9226619 commit 3e3f54c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/processing/app/EditorConsole.java
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ public EditorConsole(Base base) {
EditorConsole.init(stdOutStyle, System.out, stdErrStyle, System.err);

// Add font size adjustment listeners.
base.addEditorFontResizeListeners(consoleTextPane);
if (base != null)
base.addEditorFontResizeListeners(consoleTextPane);
}

public void applyPreferences() {
Expand Down

0 comments on commit 3e3f54c

Please sign in to comment.