Commit 65903e01 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

empty id should be changed to null

parent b706a06b
......@@ -63,6 +63,9 @@ public class SbmlParser extends Converter {
SBMLDocument sbmlDocument = SBMLReader.read(params.getInputStream());
org.sbml.jsbml.Model sbmlModel = sbmlDocument.getModel();
model.setIdModel(sbmlModel.getId());
if (model.getIdModel() != null && model.getIdModel().isEmpty()) {
model.setIdModel(null);
}
model.setName(sbmlModel.getName());
model.setNotes(NotesUtility.extractNotes(sbmlModel));
......@@ -231,7 +234,7 @@ public class SbmlParser extends Converter {
}
}
}
return true;
}
......
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