User da00f5c453
30-03-2009 05:14:03
Hi all,
I noticed the latest functionality of TopologyAnalyser which can be very handy however when I try run the following code:
I get an exception
accoring to java doc the fusedAromaticRings() function should return the atom indexes of the fused aromatic rings in the molecule and for the case above the indexes for naphthalene ring system
I am using JChem 5.2 and Java 1.6
Oleg.
I noticed the latest functionality of TopologyAnalyser which can be very handy however when I try run the following code:
Code: |
Molecule mol = MolImporter.importMol("c1ccc2ccccc2c1", "smiles"); TopologyAnalyser tp = new TopologyAnalyser(); tp.setMolecule(mol); int[][] aromRingSystems = tp.fusedAromaticRings(); for(int[] ringSystem : aromRingSystems) { System.out.println(Arrays.toString(ringSystem)); } |
I get an exception
Code: |
Exception in thread "main" java.lang.NullPointerException at chemaxon.calculations.TopologyAnalyser.fusedAromaticRings(TopologyAnalyser.java:1613) at chemaxon.calculations.TopologyAnalyser.fusedAromaticRings(TopologyAnalyser.java:1592) |
accoring to java doc the fusedAromaticRings() function should return the atom indexes of the fused aromatic rings in the molecule and for the case above the indexes for naphthalene ring system
I am using JChem 5.2 and Java 1.6
Oleg.