1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-02-01 21:52:12 +01:00

EditorConsole: Allow base to be null

This allows testing this class without going to a full initialization.
This commit is contained in:
Matthijs Kooijman 2020-05-06 13:30:24 +02:00 committed by Martino Facchin
parent 922661930d
commit 3e3f54c3ca

View File

@ -112,7 +112,8 @@ public class EditorConsole extends JScrollPane {
EditorConsole.init(stdOutStyle, System.out, stdErrStyle, System.err); EditorConsole.init(stdOutStyle, System.out, stdErrStyle, System.err);
// Add font size adjustment listeners. // Add font size adjustment listeners.
base.addEditorFontResizeListeners(consoleTextPane); if (base != null)
base.addEditorFontResizeListeners(consoleTextPane);
} }
public void applyPreferences() { public void applyPreferences() {