Hi,
I have created a custom coded jar. It has an array which contains some of messages from buddies of a user. I deployed it, on tests everyting went fine.
I got response and traced well. But when I want to get response as array, there is a problem.
On server side;
ArrayList<Buddy> buddies = getMessagesOfUser(messageIds);
JSONObject jsonResponse = new JSONObject();
jsonResponse.put("buddies",buddies.toString());
On client side; ( I am using AS3 API)
var array:Array = new BuddyResponseBuilder().buildArrayResponse(response.buddies);
I got error :
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.shephertz.app42.paas.sdk.as3::App42ResponseBuilder/getServiceJSONObject()[E:\Samita_work\gitProject_API\App42_Flash_API_Desktop\App42_ActionScript_API\src\com\shephertz\app42\paas\sdk\as3\App42ResponseBuilder.as:18]
at com.shephertz.app42.paas.sdk.as3.buddy::BuddyResponseBuilder/buildArrayResponse()[E:\Samita_work\gitProject_API\App42_Flash_API_Desktop\App42_ActionScript_API\src\com\shephertz\app42\paas\sdk\as3\buddy\BuddyResponseBuilder.as:32]
How can I solve that?
Thanks,