Skip to content

Commit

Permalink
Fixed sorting with null IAtomContainers (based on a suggestion by Mar…
Browse files Browse the repository at this point in the history
…k in the bug report #3093241)

Signed-off-by: Rajarshi  Guha <rajarshi.guha@gmail.com>
  • Loading branch information
egonw authored and rajarshi committed Sep 28, 2011
1 parent 0585bcd commit 1bf194b
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -93,9 +93,9 @@ public int compare(IAtomContainer o1, IAtomContainer o2) {
if (o1 == null && o2 == null)
return 0;
if (o1 == null)
return -1;
if (o2 == null)
return 1;
if (o2 == null)
return -1;

// Check for correct instances
if (!(o1 instanceof IAtomContainer) && !(o2 instanceof IAtomContainer))
Expand Down

0 comments on commit 1bf194b

Please sign in to comment.