ketan-sharma-developer / ksoap2-android

Automatically exported from code.google.com/p/ksoap2-android
0 stars 0 forks source link

getPropertySafelyAsString crash if null #104

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.call getPropertySafelyAsString("something")
2.something is null
3.cause nullPointerException

What is the expected output? What do you see instead?
I thing this should return null

What version of the product are you using? On what operating system?
ksoap2 - 2.6.0

Please provide any additional information below.

Original issue reported on code.google.com by martinik...@gmail.com on 25 Jan 2012 at 9:22

GoogleCodeExporter commented 8 years ago
I decided that rather than returning null and then causing NPE's it should 
return "" .. this is consistent with what gets returned in other cases as 
well..  I will release this as a new version now (2.6.3)

Original comment by mosa...@gmail.com on 10 Apr 2012 at 6:04