OSDN Git Service

fix crash when selecting illegal value
authorhizumiaoba <56146205+hizumiaoba@users.noreply.github.com>
Sat, 16 Apr 2022 02:34:59 +0000 (11:34 +0900)
committerhizumiaoba <56146205+hizumiaoba@users.noreply.github.com>
Sat, 16 Apr 2022 02:34:59 +0000 (11:34 +0900)
src/com/ranfa/main/DelesteRandomSelector.java

index ab75dc6..c5b721f 100644 (file)
@@ -444,6 +444,8 @@ public class DelesteRandomSelector extends JFrame {
                }, es).whenCompleteAsync((ret, ex) -> {
                        if(ex != null) {
                                logger.error("Exception was thrown during concurrent process", ex);
+                               if(ex instanceof IllegalArgumentException)
+                                       return; // ignore
                                CrashHandler handle = new CrashHandler(new IllegalStateException(ex));
                                handle.execute();
                        }