Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE on JFastEMD.distance(0, 0, 0.0) #6

Open
vstange opened this issue Dec 17, 2017 · 0 comments
Open

NPE on JFastEMD.distance(0, 0, 0.0) #6

vstange opened this issue Dec 17, 2017 · 0 comments
Assignees

Comments

@vstange
Copy link
Member

vstange commented Dec 17, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants