File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1927,7 +1927,9 @@ public void addEditorFontResizeMouseWheelListener(Component comp) {
1927
1927
this .handleFontSizeChange (-1 );
1928
1928
}
1929
1929
} else {
1930
- e .getComponent ().getParent ().dispatchEvent (e );
1930
+ if (e .getComponent () != null && e .getComponent ().getParent () != null ) {
1931
+ e .getComponent ().getParent ().dispatchEvent (e );
1932
+ }
1931
1933
}
1932
1934
});
1933
1935
}
Original file line number Diff line number Diff line change @@ -2060,6 +2060,8 @@ public void setUsingProgrammer(boolean usingProgrammer) {
2060
2060
2061
2061
public void run () {
2062
2062
try {
2063
+ uploading = true ;
2064
+
2063
2065
removeAllLineHighlights ();
2064
2066
if (serialMonitor != null ) {
2065
2067
serialMonitor .suspend ();
@@ -2068,8 +2070,6 @@ public void run() {
2068
2070
serialPlotter .suspend ();
2069
2071
}
2070
2072
2071
- uploading = true ;
2072
-
2073
2073
boolean success = sketchController .exportApplet (usingProgrammer );
2074
2074
if (success ) {
2075
2075
statusNotice (tr ("Done uploading." ));
You can’t perform that action at this time.
0 commit comments