Fix NumberFormatException when passing in relationship params. #10

Merged
merged 1 commit into from Jul 17, 2012
View
2 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);
}