File tree Expand file tree Collapse file tree
src/main/java/com/couchbase/lite Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -821,7 +821,7 @@ public void databaseStorageChanged(DocumentChange change) {
821821 if (change != null &&
822822 change .getAddedRevision () != null &&
823823 change .getAddedRevision ().getBody () != null )
824- change .getAddedRevision ().getBody ().compact ();
824+ change .getAddedRevision ().getBody ().compactEasy ();
825825
826826 if (change .getRevisionId () != null )
827827 Log .v (Log .TAG , "---> Added: %s as seq %d" ,
Original file line number Diff line number Diff line change @@ -164,6 +164,12 @@ public Object getPropertyForKey(String key) {
164164 return theProperties .get (key );
165165 }
166166
167+ public void compactEasy () {
168+ if (this .json != null && this .object != null ) {
169+ this .object = null ;
170+ }
171+ }
172+
167173 public boolean compact () {
168174 try {
169175 getJson ();
You can’t perform that action at this time.
0 commit comments