User 9d765be2f7
20-03-2008 20:32:17
I'm doing some refactoring, and so have two extremely similar versions of the same routine, which does very little of interest except insert a structure into a JChem structure table. They are not currently targeting the same table, but I am inserting the same structures, and in one case it works, and the other I get the error below:
java.lang.NullPointerException
at chemaxon.reaction.Standardizer.standardizeComponent(Standardizer.java:1281)
at chemaxon.reaction.Standardizer.standardize(Standardizer.java:1371)
at chemaxon.jchem.db.TableInfo.standardize(TableInfo.java:1092)
at chemaxon.jchem.db.UpdateHandler.init(UpdateHandler.java:762)
at chemaxon.jchem.db.UpdateHandler.execute(UpdateHandler.java:1409)
at com.nrgn.core.JChemRepository.insertStructure(JChemRepository.java:169)
at unitTest.com.nrgn.core.SaltStructureRepositoryTest.testInsertStructure(SaltStructureRepositoryTest.java:350)
I assume there's some minor difference either between the way the tables are set up or between the two subroutines, but with an error that deep into library code, I really haven't the foggiest idea where to start looking. Any suggestions?
This is using JChem 3.1.4 (probably relevant) and Oracle 9 (probably not).
java.lang.NullPointerException
at chemaxon.reaction.Standardizer.standardizeComponent(Standardizer.java:1281)
at chemaxon.reaction.Standardizer.standardize(Standardizer.java:1371)
at chemaxon.jchem.db.TableInfo.standardize(TableInfo.java:1092)
at chemaxon.jchem.db.UpdateHandler.init(UpdateHandler.java:762)
at chemaxon.jchem.db.UpdateHandler.execute(UpdateHandler.java:1409)
at com.nrgn.core.JChemRepository.insertStructure(JChemRepository.java:169)
at unitTest.com.nrgn.core.SaltStructureRepositoryTest.testInsertStructure(SaltStructureRepositoryTest.java:350)
I assume there's some minor difference either between the way the tables are set up or between the two subroutines, but with an error that deep into library code, I really haven't the foggiest idea where to start looking. Any suggestions?
This is using JChem 3.1.4 (probably relevant) and Oracle 9 (probably not).