Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Arghh... OK, test for factory nullness here once more then :(

  • Loading branch information...
commit 1b2a534297183a0f513bf9c2b9b133b59d068d9a 1 parent 3a49ae5
@egonw authored
View
4 plugins/net.bioclipse.inchi/src/net/bioclipse/inchi/business/InChIManager.java
@@ -60,6 +60,10 @@ public void generate( IMolecule molecule,
atom.setFlag(CDKConstants.ISAROMATIC, false);
for (IBond bond : clone.bonds())
bond.setFlag(CDKConstants.ISAROMATIC, false);
+ // FIXME: this should already have been covered by the earlier
+ // isAvailable() call, but wasn't... weird...
+ if (factory == null)
+ returner.completeReturn(InChI.FAILED_TO_CALCULATE);
InChIGenerator gen = factory.getInChIGenerator(clone);
INCHI_RET status = gen.getReturnStatus();
if(monitor.isCanceled())
Please sign in to comment.
Something went wrong with that request. Please try again.