-
Notifications
You must be signed in to change notification settings - Fork 1
Description
If you call JFastEMD.distance() with empty values or Signatures with empty value you get an NPE. That should not happen.
Caused by: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0
at java.util.Vector.get(Vector.java:748) ~[na:1.8.0_111]
at com.formulasearchengine.mathmlsim.distances.earthmover.JFastEMD.emdHat(JFastEMD.java:321) ~[mathmlsim-1.0.0-20170714.060820-6.jar:na]
at com.formulasearchengine.mathmlsim.distances.earthmover.JFastEMD.distance(JFastEMD.java:78) ~[mathmlsim-1.0.0-20170714.060820-6.jar:na]
at org.sciplore.pds.algorithm.impl.HistogramDetailed.executeAlgorithm(HistogramDetailed.java:90) ~[classes/:na]
at org.sciplore.pds.algorithm.DetailedAlgorithmA.call(DetailedAlgorithmA.java:25) ~[classes/:na]
at org.sciplore.pds.algorithm.DetailedAlgorithmA.call(DetailedAlgorithmA.java:16) ~[classes/:na]
... 4 common frames omitted