Skip to content

Commit

Permalink
Slight mistake in isCharged
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmay authored and egonw committed May 28, 2021
1 parent ccf5fc6 commit f89de71
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ private IAtomType perceiveOxygenRadicals(IAtomContainer atomContainer, IAtom ato
}

private boolean isCharged(IAtom atom) {
return atom.getFormalCharge() != 0 && atom.getFormalCharge() != 0;
return atom.getFormalCharge() != null && atom.getFormalCharge() != 0;
}

private boolean isCharge(IAtom atom, int q) {
Expand Down

0 comments on commit f89de71

Please sign in to comment.