Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-870] Android: JSON.parse of null throws NPE

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:54:30.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.3.0
ComponentsAndroid
Labelsandroid, defect
ReporterDon Thorp
AssigneeDon Thorp
Created2011-04-15T02:38:10.000+0000
Updated2011-04-17T01:54:30.000+0000

Description

the iPhone JSON.parse(null) return null instead of throwing an exception. Change Android to match.

Comments

  1. Don Thorp 2011-04-15

    (from [06645bbfe3fd37904e4587af0f4ef14b4006992b]) [#870 state:resolved] JSON.parse(null) now returns null instead of throwing a NPE http://github.com/appcelerator/titanium_mobile/commit/06645bbfe3fd37904e4587af0f4ef14b4006992b"> http://github.com/appcelerator/titanium_mobile/commit/06645bbfe3fd3...

JSON Source