Skip to content

Commit 2f6364c

Browse files
authored
Avoid NPE when retrieving null relationsDepth (#288)
The NPE leads to a broken cache inside of weborb's serializer - it merely can't see that there's a relationsDepth field and ignores it further.
1 parent 5da272c commit 2f6364c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/com/backendless/persistence/QueryOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public void setRelationsDepth ( Integer relationsDepth )
9999
this.relationsDepth = relationsDepth;
100100
}
101101

102-
public int getRelationsDepth()
102+
public Integer getRelationsDepth()
103103
{
104104
return relationsDepth;
105105
}

0 commit comments

Comments
 (0)