Permalink
Browse files

Merge pull request #150 from zznate/fixrefs

Stuff
  • Loading branch information...
2 parents 6301605 + 8036b06 commit 0f8e7138cfe80d0ef319303cfd5dc8ff8ebadd09 @zznate committed Mar 7, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/org/usergrid/vx/server/operations/HandlerUtils.java
@@ -39,7 +39,7 @@ public static void resolveRefs( JsonObject operation, JsonObject results ){
Object o = params.getField(name);
if (o instanceof JsonObject){
JsonObject j = (JsonObject) o;
- if( j.getString("type").equals("GETREF")){
+ if( j.getString("type") !=null && j.getString("type").equals("GETREF")){
int refId = j.getObject("op").getInteger("resultref");
String wanted = j.getObject("op").getString("wanted");
Object k =results.getArray(refId+"").get(0);

0 comments on commit 0f8e713

Please sign in to comment.