Lawnchair illegal access error

by graham

I've been using the fantastic mobile storage library Lawnchair in a recent Android project and got an "illegal access" error when running on a device (Samsung Galaxy S), which is caused by a JSON.parse null paramter. 

To prevent this, add json2.js to your project:

 

       <script>window.JSON = null;</script>

       <script src="assets/scripts/json2.js"></script>


Comments

December 30. 2011 #

Thanks for posting this. This error was rather cryptic.

Daniel United States |

Comments are closed