Skip to content

Commit

Permalink
Also fail when the atom type is X (for unknown)
Browse files Browse the repository at this point in the history
  • Loading branch information
egonw committed Jun 24, 2010
1 parent 2218191 commit 6676c50
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -133,7 +133,8 @@ private String ensureFullAtomTyping(IAtomContainer hydrogenlessClone) {
int i = 0;
for (IAtomType type : types) {
i++;
if (type == null) return "Cannot calculate SMILES; Missing " +
if (type == null || "X".equals(type.getAtomTypeName()))
return "Cannot calculate SMILES; Missing " +
"atom type for atom " + i + ": " +
hydrogenlessClone.getAtom(i-1);
}
Expand Down

0 comments on commit 6676c50

Please sign in to comment.