Hi,

 

When using StructureDiagramGenerator.setMolecule(IMolecule) method in the
code snippet below, it produces a  NullPointerException mentioned below. I'm
using cdk1.2.5, although I encountered the same in the cdk1.3.5 branch. What
am I doing wrong here?

 

Thanks in advance,

 

IMolecule triazole = MoleculeFactory.make123Triazole();

StructureDiagramGenerator sdg = new StructureDiagramGenerator();

sdg.setMolecule(triazole);

 

 

Reason: null

java.lang.NullPointerException

      at java.io.Reader.<init>(Reader.java:61)

      at java.io.InputStreamReader.<init>(InputStreamReader.java:55)

      at
org.openscience.cdk.layout.TemplateHandler.loadTemplates(TemplateHandler.jav
a:98)

      at
org.openscience.cdk.layout.TemplateHandler.<init>(TemplateHandler.java:83)

      at
org.openscience.cdk.layout.StructureDiagramGenerator.setMolecule(StructureDi
agramGenerator.java:131)

      at
org.openscience.cdk.layout.StructureDiagramGenerator.setMolecule(StructureDi
agramGenerator.java:221)

      at pinanol.main(filename.java:69)

 

Nick VANDEWIELE

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Cdk-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cdk-user

Reply via email to