NoSuchElementException

User c23c5e9da4

13-03-2007 16:48:02

When parsing an empty smiles a NoSuchElementException is thrown instead of a MolFormatException (or returning an empty Molecule)





MolImporter.importMol("");





java.util.NoSuchElementException


at java.util.StringTokenizer.nextToken(StringTokenizer.java:332)


at chemaxon.formats.MFileFormatUtil.canBe3LetterPeptide(MFileFormatUtil.java:554)


at chemaxon.formats.MolInputStream.init(MolInputStream.java:373)


at chemaxon.formats.MolInputStream.<init>(MolInputStream.java:102)


at chemaxon.formats.MolInputStream.<init>(MolInputStream.java:44)


at chemaxon.formats.MolImporter.importMol(MolImporter.java:1160)


at chemaxon.formats.MolImporter.importMol(MolImporter.java:1222)

ChemAxon 7c2d26e5cf

13-03-2007 21:32:49

Thanks for the bug report. We have fixed it.