Permalink
Browse files

Fix NumberFormatException when passing in relationship parameters.

  • Loading branch information...
1 parent 1c05164 commit e2c522e8f8fe224d259c22d63ad0a996df34b5c9 @mikesname mikesname committed Jul 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 geoff-plugin/src/main/java/org/neo4j/server/plugin/geoff/GeoffParams.java
@@ -54,7 +54,7 @@
if (value.startsWith("/node/")) {
p2.put(key, graphDB.getNodeById(Integer.parseInt(value.substring(6))));
} else if (value.startsWith("/relationship/")) {
- p2.put(key, graphDB.getNodeById(Integer.parseInt(value.substring(13))));
+ p2.put(key, graphDB.getNodeById(Integer.parseInt(value.substring(14))));
} else {
throw new IllegalArgumentException("Cannot resolve parameter: " + key);
}

0 comments on commit e2c522e

Please sign in to comment.