Null pointer Exception
Tested on KEGG molecules:
For example
a) C00524, C00658, C00676, C01003, etc.
java.lang.NullPointerException
at org.openscience.cdk.fingerprint.CircularFingerprinter.rubricTetrahedral(CircularFingerprinter.java:853)
at org.openscience.cdk.fingerprint.CircularFingerprinter.excavateMolecule(CircularFingerprinter.java:597)
at org.openscience.cdk.fingerprint.CircularFingerprinter.calculate(CircularFingerprinter.java:193)
at org.openscience.cdk.fingerprint.CircularFingerprinter.getBitFingerprint(CircularFingerprinter.java:259)
Hi Asad,
Have you modified the molecule at all? I don't get any problems from the KEGG molfiles.
J
Hi John,
Yes I do modify the molecule by adding Hydrogen etc.
I agree with you that the direct conversion (SMILES to fingerprint) doesn’t show this error!
Something strange might be taking place in my conversion code…
Asad
Related
Bugs:
#1357Your molecule is in an inconsistent state. Some of the atoms have
coordinates some don't (the hydrogens). You either need to layout the
hydrogens with the SDG or remove them.
I will fix the code to avoid the NPE though.
Regards,
John W May
john.wilkinsonmay@gmail.com
On 11 February 2015 at 11:29, Asad asadrahman@users.sf.net wrote:
Related
Bugs:
#1357I managed to reproduce it but not with hydrogens. Other atoms must have null coordinates.
patch https://github.com/cdk/cdk/pull/116