From: bb3dan Date: Sat, 21 Sep 2013 23:40:23 +0000 (-0400) Subject: Bug Fix X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=179b1fb4846e67cbbcc868ffaec59aadace5893d;p=SugarCubes.git Bug Fix Fixed but that prevented proper startup with APC40 connected --- diff --git a/_Internals.pde b/_Internals.pde index f872d9b..7f7e35f 100644 --- a/_Internals.pde +++ b/_Internals.pde @@ -319,7 +319,7 @@ public class MidiListener extends AbstractScrollItem { public MidiListener setEnabled(boolean enabled) { if (enabled != this.enabled) { this.enabled = enabled; - uiMidi.redraw(); + if (uiMidi != null) uiMidi.redraw(); } return this; }