Created
May 27, 2012 01:03
-
-
Save samstewart/2795775 to your computer and use it in GitHub Desktop.
Fix for Glu's crashes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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