Hi,
The method CVTerm.removeResource(String) does not seem to work as expected. For example, if there is only one Resource in the CVTerm, a call to the method will trigger:
Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
at java.util.ArrayList.RangeCheck(ArrayList.java:547)
at java.util.ArrayList.get(ArrayList.java:322)
at org.sbml.jsbml.CVTerm.removeResource(CVTerm.java:748)
Using the jar: jsbml-1.0-beta-with-dependencies-20140314.jar
Reported by: perkeo
Hi,
The method CVTerm.removeResource(String) does not seem to work as expected. For example, if there is only one Resource in the CVTerm, a call to the method will trigger:
Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
at java.util.ArrayList.RangeCheck(ArrayList.java:547)
at java.util.ArrayList.get(ArrayList.java:322)
at org.sbml.jsbml.CVTerm.removeResource(CVTerm.java:748)
Using the jar: jsbml-1.0-beta-with-dependencies-20140314.jar
Reported by: perkeo