- Application type: mobile
- Titanium SDK: 2.1.2GA
- Platform & version: iOS 5.0
- Device: iOS simulator
- Host Operating System: OSX 10.6.8
- Titanium Studio: 188.8.131.52208301612
The following code used to create a new ACS Event worked earlier in the week, but now fails with the error "'null' is not an object (evaluating 'c.trim')" when run on the simulator.
The code in question is here: [http://jsfiddle.net/bp4151/bxHA9/]
I think I found it. I was going mad looking at my text parameters since the error indicated a string method, when in fact it was the photo was null since I was trying to create an event and forgot to select an image. Can't assign a photo to the event when the photo object is null.
Note to Appcelerator dev team. If you could correct missing data error messages to reflect what is actually happening, I am sure your developer base would be thankful. No offense, but this one was a little like "your shoe is untied, check your nose..."
Think you can help? Login to answer this question!