eleooo / hessdroid

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

np when date property is null #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
JavaSerializer throws the following np when date property is null:

08-06 21:41:22.008: ERROR/AndroidRuntime(1111): java.lang.NullPointerException
08-06 21:41:22.008: ERROR/AndroidRuntime(1111):     at 
com.caucho.hessian.io.JavaSerializer$DateFieldSerializer.serialize(JavaSerialize
r.java:430)
08-06 21:41:22.008: ERROR/AndroidRuntime(1111):     at 
com.caucho.hessian.io.JavaSerializer.writeObject10(JavaSerializer.java:241)
08-06 21:41:22.008: ERROR/AndroidRuntime(1111):     at 
com.caucho.hessian.io.JavaSerializer.writeObject(JavaSerializer.java:221)
08-06 21:41:22.008: ERROR/AndroidRuntime(1111):     at 
com.caucho.hessian.io.HessianOutput.writeObject(HessianOutput.java:317)
08-06 21:41:22.008: ERROR/AndroidRuntime(1111):     at 
com.caucho.hessian.io.HessianOutput.call(HessianOutput.java:131)
08-06 21:41:22.008: ERROR/AndroidRuntime(1111):     at 
com.caucho.hessian.client.HessianProxy.sendRequest(HessianProxy.java:307)
08-06 21:41:22.008: ERROR/AndroidRuntime(1111):     at 
com.caucho.hessian.client.HessianProxy.invoke(HessianProxy.java:160)

This is bug is due to Date.getTime() is called without checking whether value 
is null or not.

Original issue reported on code.google.com by andre.steingress on 6 Aug 2009 at 7:54

GoogleCodeExporter commented 9 years ago
check for null added to JavaSerializer

Original comment by andre.steingress on 6 Aug 2009 at 7:59