File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 47
47
import org .exist .security .PermissionDeniedException ;
48
48
49
49
import static java .nio .charset .StandardCharsets .UTF_8 ;
50
+ import static org .exist .util .ThreadUtils .newGlobalThread ;
50
51
import static org .exist .util .ThreadUtils .newInstanceThread ;
51
52
52
53
@@ -338,7 +339,11 @@ private void startBtncheck(java.awt.event.ActionEvent evt) { // GEN-FIRST:event_
338
339
closeLog ();
339
340
}
340
341
};
341
- newInstanceThread (pool , "export-gui.check-run" , checkRun ).start ();
342
+ if (pool != null ) {
343
+ newInstanceThread (pool , "export-gui.check-run" , checkRun ).start ();
344
+ } else {
345
+ newGlobalThread ("export-gui.check-run" , checkRun ).start ();
346
+ }
342
347
} // GEN-LAST:event_startBtncheck
343
348
344
349
@@ -359,7 +364,11 @@ private void exportBtnActionPerformed(java.awt.event.ActionEvent evt) { // GEN-F
359
364
closeLog ();
360
365
}
361
366
};
362
- newInstanceThread (pool , "export-gui.export" , th ).start ();
367
+ if (pool != null ) {
368
+ newInstanceThread (pool , "export-gui.export" , th ).start ();
369
+ } else {
370
+ newGlobalThread ("export-gui.export" , th ).start ();
371
+ }
363
372
} // GEN-LAST:event_exportBtnActionPerformed
364
373
365
374
You can’t perform that action at this time.
0 commit comments