File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -2233,7 +2233,6 @@ public boolean handleSaveAs() {
2233
2233
2234
2234
2235
2235
public boolean serialPrompt () {
2236
- populateSerialMenu ();
2237
2236
int count = serialMenu .getItemCount ();
2238
2237
Object [] names = new Object [count ];
2239
2238
for (int i = 0 ; i < count ; i ++) {
@@ -2298,7 +2297,9 @@ public void run() {
2298
2297
// error message will already be visible
2299
2298
}
2300
2299
} catch (SerialNotFoundException e ) {
2301
- if (serialPrompt ()) run ();
2300
+ populateSerialMenu ();
2301
+ if (serialMenu .getItemCount () == 0 ) statusError (e );
2302
+ else if (serialPrompt ()) run ();
2302
2303
else statusNotice ("Upload canceled." );
2303
2304
} catch (RunnerException e ) {
2304
2305
//statusError("Error during upload.");
@@ -2329,6 +2330,11 @@ public void run() {
2329
2330
} else {
2330
2331
// error message will already be visible
2331
2332
}
2333
+ } catch (SerialNotFoundException e ) {
2334
+ populateSerialMenu ();
2335
+ if (serialMenu .getItemCount () == 0 ) statusError (e );
2336
+ else if (serialPrompt ()) run ();
2337
+ else statusNotice ("Upload canceled." );
2332
2338
} catch (RunnerException e ) {
2333
2339
//statusError("Error during upload.");
2334
2340
//e.printStackTrace();
You can’t perform that action at this time.
0 commit comments