Is LoadUserPrefs your code? What is null?
1 person found this helpful
So the question is what happens at line 21 of LoadUserPrefs, if its looking for some sort of data that was created from a response maybe its not flex but your communications that have broken down cuasing an issue when something tries to call a value that wasn't instantiated. Have you stepped through the code in debug mode to see why some property is not instantiating.
Thank you for replying.
Yes, I've looked at this using the debugger. I have verified that the data from the HTTP GET exists.
LoadUserPrefs is an actionscript class that I'm using to load my valueObject from the JSON data retrieved by an HTTP GET. I can see that data item in the debugger. It looks exactly like it should (e.g. a color in format #FFFFFF).
I debugged this code weeks ago, it works, and I haven't changed it since.
The developer who is handling the server side implementation says that he hasn't changed anything. My inspection of the incoming data confirms this.
I am utterly baffled.
I found the problem!
There *was* a slight change to the format of the incoming JSON data.
The strange part is that I could still see the data and it looked fine. Not sure how that was possible since it couldn't possibly have been parsed properly, but I've got it sorted now.
I need to do a good think on how to put better error detection/handling into the code that processes the incoming JSON data. If anyone has links to articles and or sample code, that would be most helpful and appreciated.
Thank you for helping me !!!
Those back-end developers you gotta keep an eye on them
I go through about one Costco-sized roll of duct tape per week keeping my head wrapped so it doesn't explode from server-side madness.