diff --git a/src/eva2/EvAInfo.java b/src/eva2/EvAInfo.java index f5b9c3a0..2d50535d 100644 --- a/src/eva2/EvAInfo.java +++ b/src/eva2/EvAInfo.java @@ -1,6 +1,6 @@ package eva2; -import java.io.File; +import java.io.InputStream; import java.util.Properties; import eva2.tools.BasicResourceLoader; @@ -100,8 +100,8 @@ public class EvAInfo { System.err.println(ex.getMessage()); System.exit(1); } - File f=new File(EvAInfo.iconLocation); - if (!f.exists()) { + InputStream istr = BasicResourceLoader.instance().getStreamFromResourceLocation(EvAInfo.iconLocation); + if (istr==null) { throw new RuntimeException(resourceNotFoundErrorMessage(EvAInfo.iconLocation) + " (EvAInfo.static)"); // System.exit(2); // dont be as harsh right here - there will be plenty of exceptions later in the bad case... } diff --git a/src/eva2/server/go/populations/Population.java b/src/eva2/server/go/populations/Population.java index 7e47ec01..32283fe2 100644 --- a/src/eva2/server/go/populations/Population.java +++ b/src/eva2/server/go/populations/Population.java @@ -1676,6 +1676,10 @@ public class Population extends ArrayList implements PopulationInterface, Clonea if (pop.size()<2) { return new double[]{1.,1.,1.,1.}; } + if (!(pop.getEAIndividual(0) instanceof InterfaceDataTypeDouble)) { + EVAERROR.errorMsgOnce("Warning: population correlations can only be calculated for double valued data!"); + return new double[]{1.,1.,1.,1.}; + } int index=0; double corsSum=0, minCor = 10., maxCor=-10.; for (int i = 0; i < pop.size()-1; i++) {