Commit a65a8f68 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

reaction can be null

parent 3323afbb
Pipeline #40050 passed with stage
in 22 minutes and 36 seconds
......@@ -52,6 +52,10 @@ public enum SBOTermReactionType {
}
public static Class<? extends Reaction> getTypeSBOTerm(org.sbml.jsbml.Reaction reaction) {
if (reaction == null) {
return StateTransitionReaction.class;
}
String sboTerm = reaction.getSBOTermID();
if (sboTerm == null || sboTerm.isEmpty()) {
return StateTransitionReaction.class;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment