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:
parent
922661930d
commit
3e3f54c3ca
@ -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() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user