Permalink
Browse files

Merge pull request #10 from mikesname/master

Fix NumberFormatException when passing in relationship params.
  • Loading branch information...
2 parents 1c05164 + e2c522e commit f1ed566a61e98c915dfeadcb68679375412ec0df @technige technige 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 f1ed566

Please sign in to comment.