I am trying to execute multiple requests at the "executeBatchAndWait" method. I am expecting the function to return only after all requests have been executed and all response received. But, the function returns instantly. And when I do,
response.getGraphObject().getInnerJSONObject();
It throws a null pointer exception.
CODE:
Log.v(TAG, "executing album requests");
List<Response> mResponsesList = Request.executeBatchAndWait(mAlbumPhotosRequests);
Log.v(TAG, "received album responses");
OUTPUT
02-13 15:48:45.900: executing album requests
02-13 15:48:45.904: received album responses