Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Only visit part if there is at least two atoms.
  • Loading branch information
johnmay committed Mar 31, 2017
1 parent d24af77 commit ef43de6
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -140,7 +140,7 @@ public IBitFingerprint getBitFingerprint(IAtomContainer container) throws CDKExc
// component, iff there are some atoms not visited we have more than
// one component
boolean[] visit = new boolean[numAtoms];
if (visitPart(visit, adjlist, 0, -1) < numAtoms)
if (numAtoms > 1 && visitPart(visit, adjlist, 0, -1) < numAtoms)
fp.set(165);
break;

Expand Down

0 comments on commit ef43de6

Please sign in to comment.