Skip to content

Commit

Permalink
Updated checking of indices which now are -1 if unset, instead of null
Browse files Browse the repository at this point in the history
  • Loading branch information
asad authored and egonw committed Aug 30, 2010
1 parent 9c6c830 commit cd8ccee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -253,7 +253,7 @@ private void setVFMappings(boolean RONP, IQuery query) {
}
Integer qIndex = Integer.valueOf(getReactantMol().getAtomNumber(qAtom));
Integer tIndex = Integer.valueOf(getProductMol().getAtomNumber(tAtom));
if (qIndex != null && tIndex != null) {
if (qIndex != -1 && tIndex != -1) {
atomatomMapping.put(qAtom, tAtom);
indexindexMapping.put(qIndex, tIndex);
} else {
Expand Down
Expand Up @@ -314,7 +314,7 @@ private void setMcGregorMappings(List<List<Integer>> mappings) throws CDKExcepti
Integer qIndex = mapping.get(index);
Integer tIndex = mapping.get(index + 1);

if (qIndex != null && tIndex != null) {
if (qIndex != -1 && tIndex != -1) {
atomatomMapping.put(qAtom, tAtom);
indexindexMapping.put(qIndex, tIndex);
} else {
Expand Down

0 comments on commit cd8ccee

Please sign in to comment.