Skip to content

Commit

Permalink
Only store a cdk:Formula field if we really found formula
Browse files Browse the repository at this point in the history
Change-Id: I860ad9a35c3d4c7caf1f87d159179986573f0050
Signed-off-by: John May <john.wilkinsonmay@gmail.com>
  • Loading branch information
egonw authored and johnmay committed Jul 3, 2014
1 parent a961337 commit 02505c2
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -1153,7 +1153,7 @@ protected void storeData() {
// cdo.setObjectProperty("Molecule", "inchi", inchi);
currentMolecule.setProperty(CDKConstants.INCHI, inchi);
}
if (formula != null){
if (formula != null && formula.size() > 0){
currentMolecule.setProperty(CDKConstants.FORMULA, formula);
}
Iterator<String> customs=moleculeCustomProperty.iterator();
Expand Down

0 comments on commit 02505c2

Please sign in to comment.