Skip to content

Commit 9b4a75d

Browse files
committed
Urge stupid null hydrogen count!
1 parent dd5492e commit 9b4a75d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

base/atomtype/src/main/java/org/openscience/cdk/atomtype/EStateAtomTypeMatcher.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ public IAtomType findMatchingAtomType(IAtomContainer atomContainer, IAtom atom)
6363
IAtomType atomType = null;
6464
try {
6565
String fragment = "";
66-
int NumHAtoms = atom.getImplicitHydrogenCount();
66+
int NumHAtoms = atom.getImplicitHydrogenCount() != null ?
67+
atom.getImplicitHydrogenCount() : 0;
6768
int NumSingleBonds2 = NumHAtoms;
6869
int NumDoubleBonds2 = 0;
6970
int NumTripleBonds2 = 0;

0 commit comments

Comments
 (0)