Skip to content

Instantly share code, notes, and snippets.

@samstewart
Created May 27, 2012 01:03
Show Gist options
  • Save samstewart/2795775 to your computer and use it in GitHub Desktop.
Save samstewart/2795775 to your computer and use it in GitHub Desktop.
Fix for Glu's crashes
// Fix for PHPublisherContentRequest null pointer exception in Playhaven's SDK. Open up PHPublisherContentRequest and find handleRequestSuccess (should be around line 332). Remove the following line:
delegate.requestFailed(this, new JSONException("Couldn't parse respone into PHContent"));
// and replace it with to guard against null delegates
if (delegate != null) delegate.requestFailed(this, new JSONException("Couldn't parse respone into PHContent"));
// if you want extra security, make sure to use a "dummy" delegate as well with blank method stubs instead of passing null.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment