Skip to content

Commit f89de71

Browse files
johnmayegonw
authored andcommitted
Slight mistake in isCharged
1 parent ccf5fc6 commit f89de71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/core/src/main/java/org/openscience/cdk/atomtype/CDKAtomTypeMatcher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ private IAtomType perceiveOxygenRadicals(IAtomContainer atomContainer, IAtom ato
552552
}
553553

554554
private boolean isCharged(IAtom atom) {
555-
return atom.getFormalCharge() != 0 && atom.getFormalCharge() != 0;
555+
return atom.getFormalCharge() != null && atom.getFormalCharge() != 0;
556556
}
557557

558558
private boolean isCharge(IAtom atom, int q) {

0 commit comments

Comments
 (0)