diff --git a/src/com/backendless/persistence/QueryOptions.java b/src/com/backendless/persistence/QueryOptions.java
index <HASH>..<HASH> 100644
--- a/src/com/backendless/persistence/QueryOptions.java
+++ b/src/com/backendless/persistence/QueryOptions.java
@@ -99,7 +99,7 @@ public class QueryOptions
     this.relationsDepth = relationsDepth;

   }

 

-  public int getRelationsDepth()

+  public Integer getRelationsDepth()

   {

     return relationsDepth;

   }
Avoid NPE when retrieving null relationsDepth (#<I>)

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.