Fixed ConcurrentModification related to Export #437

This commit is contained in:
Rsl1122 2017-12-02 19:48:48 +02:00
parent 3c6167ddcf
commit a71f444bf8
4 changed files with 10 additions and 3 deletions

View File

@ -186,6 +186,10 @@ public class AnalysisUtils {
double probability = 1.0;
if (similarM.isEmpty() && similarW.isEmpty()) {
return 0;
}
if (!similarM.isEmpty()) {
int stickM = 0;
for (StickyData stickyData : stickyStuckM) {
@ -206,6 +210,7 @@ public class AnalysisUtils {
probability *= (stickW / similarW.size());
}
return probability;
}

View File

@ -7,6 +7,7 @@ package main.java.com.djrapitops.plan.utilities.file.export;
import com.djrapitops.plugin.api.utility.log.Log;
import java.io.IOException;
import java.util.ConcurrentModificationException;
import java.util.UUID;
/**
@ -34,7 +35,7 @@ public class AnalysisExport extends SpecificExport {
} finally {
try {
this.cancel();
} catch (IllegalArgumentException ignore) {
} catch (ConcurrentModificationException | IllegalArgumentException ignore) {
}
}
}

View File

@ -73,7 +73,7 @@ public class HtmlExport extends SpecificExport {
} finally {
try {
this.cancel();
} catch (IllegalArgumentException ignore) {
} catch (ConcurrentModificationException | IllegalArgumentException ignore) {
}
}
}

View File

@ -7,6 +7,7 @@ package main.java.com.djrapitops.plan.utilities.file.export;
import com.djrapitops.plugin.api.utility.log.Log;
import java.io.IOException;
import java.util.ConcurrentModificationException;
import java.util.UUID;
/**
@ -34,7 +35,7 @@ public class PlayerExport extends SpecificExport {
} finally {
try {
this.cancel();
} catch (IllegalArgumentException ignore) {
} catch (ConcurrentModificationException | IllegalArgumentException ignore) {
}
}
}