While updating document some time getting Nullpointer Exception in couchbase lite android

46 views
Skip to first unread message

PRASANNA KUMAR

unread,
Jun 24, 2014, 6:04:56 AM6/24/14
to mobile-c...@googlegroups.com
Hi All,

I been working with couchbase lite android with new jar file, The latest post 1.0 master branch build is here: http://factory.couchbase.com/job/build_cblite_android_master/396/artifact/couchbase-lite-0.0.0-396-android-community.zip. Here when i update document some times it not updating the document we are getting exception like.

Here is my code like:

Document ticketDocument = .database.getDocument(bundle.getString(ticketId));

HashMap<String,Object> currentProperties = ticketDocument.getProperties();

 // make a copy of the ticketDocumentument properties
Map<String, Object> newProperties = new HashMap<String, Object>();
newProperties.putAll(currentProperties);

//my changes fileds
newPropeties.put("archived","true");

//updating the document
ticketDocument.putProperties(newProperties);

like that am doing some times it not updating throws exception like above link.and also i observed if i update the same document 3 or more times also i am facing same problem.

is there any suggestion for this problem.

thank's
prasanna 

Traun Leyden

unread,
Jun 30, 2014, 2:46:57 PM6/30/14
to mobile-c...@googlegroups.com

This looks like a bug based on the stacktrace.

Can you file an issue here and be sure to include the link to the stracktrace?
Reply all
Reply to author
Forward
0 new messages