I've just created a fairly simple Java ME app for the Series 40 platform. The app runs perfectly in the emulator, but when I package it to my own Series 40 phone, the app fails with a NullPointerException
. Almost all of my code handles arrays, and so it is very hard to tell where the error has occured, as the phone's error report does not include any details.
So how can I debug the app on the phone? (And if anyone can think of any reason why an app would fail on the phone, but not the emulator (I'm really stumped on this) please share.)