ebelenwaf / openmobster

Automatically exported from code.google.com/p/openmobster
0 stars 0 forks source link

Bean list entry with empty property is saved as null value #181

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.create a beanList with one of its' entry's property set to empty value " ",
2.call save() on MobileBean followed by saveList(BeanList),
3.Read the beanList using readList().

What is the expected output? What do you see instead?
BeanList should be returned with the empty value " ", however following 
exception occurs:

java.lang.NullPointerException
    at java.util.Hashtable.put(Hashtable.java:365)
    at org.openmobster.android.api.sync.MobileBean.port(MobileBean.java:1193)
    at org.openmobster.android.api.sync.MobileBean.readList(MobileBean.java:265)

What version of the product are you using? On what operating system?
2.4M2 Android

Please provide any additional information below.
More details: 
https://groups.google.com/forum/?fromgroups=#!topic/openmobster-users/GaMUEBTRLz
Y

Original issue reported on code.google.com by rohitver...@gmail.com on 30 Jul 2013 at 5:38