Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Also the last parameter must be an IAtom

Change-Id: Ieaf5ae528623e558b2ab0eb5d240d9cfa9035bff
  • Loading branch information...
commit 3d0b0e5f329e9256638ce18e4b5024e2d348474a 1 parent 2a2aecc
@egonw authored
View
3  src/main/org/openscience/cdk/DefaultChemObjectBuilder.java
@@ -421,7 +421,8 @@ private String getNoConstructorFoundMessage(Class clazz) {
} else {
// the IBond(IAtom[]) constructor
boolean allIAtom = true;
- for (int i=0; i<(params.length-1) && allIAtom; i++) {
+ for (int i=0; i<params.length && allIAtom; i++) {
+ System.out.println(params[i]);
if (!(params[i] instanceof IAtom)) allIAtom = false;
}
if (allIAtom) {
View
2  src/main/org/openscience/cdk/silent/SilentChemObjectBuilder.java
@@ -414,7 +414,7 @@ private String getNoConstructorFoundMessage(Class clazz) {
} else {
// the IBond(IAtom[]) constructor
boolean allIAtom = true;
- for (int i=0; i<(params.length-1) && allIAtom; i++) {
+ for (int i=0; i<params.length && allIAtom; i++) {
if (!(params[i] instanceof IAtom)) allIAtom = false;
}
if (allIAtom) {
Please sign in to comment.
Something went wrong with that request. Please try again.