My code is out to get me!
This is going to be stupid, i just know it, But i've been staring at this for ages.
GIST of it
The code above crashes at line 4,16,25
Yet works just fine on the 4th menu option, First 3 Menu choices are crashing
[TRACE] E/KrollCallback( 648): (kroll$1) [18,14073] Error evaluating source: Wrapped java.lang.NullPointerException (file:///android_asset/Resources/Menu.js#25)
I'm sure someone will just look at it and laugh, but I just can't see it today.
Regards,
Ryan
2 Answers
-
maybe add a event to your listeners
addEventListener('click', function(){ to addEventListener('click', function(e){
and where is the var c ??
c.open('GET', 'Some URL'); c.send({Login:Titanium.App.Properties.getString('Login'),DeviceID:Ti.Platform.id,Model:Ti.Platform.model});
-
I forgot to mention that this Code was working previously, We added some new features, Didn't touch the menu, and now it's broke.
The First Suggestion didn't work, Thanks for trying, The c variable is a XHR object i use to update the content of the app.