ConnorWave10
Member
Hello everyone,
Recently I have seen a large increase in "java.lang.NullPointerException" causing "java.lang.RuntimeException" errors for YYC Android compiled apk.
Has anyone else seen this, or had any experience with it?
I have highlighted where the issue starts.
Here is the Stack Trace:
And here is the Java code it relates to:
Recently I have seen a large increase in "java.lang.NullPointerException" causing "java.lang.RuntimeException" errors for YYC Android compiled apk.
Has anyone else seen this, or had any experience with it?
I have highlighted where the issue starts.
Here is the Stack Trace:
java.lang.RuntimeException:
at android.app.ActivityThread.deliverResults (ActivityThread.java:5324)
at android.app.ActivityThread.handleSendResult (ActivityThread.java:5365)
at android.app.servertransaction.ActivityResultItem.execute (ActivityResultItem.java:51)
at android.app.servertransaction.TransactionExecutor.executeCallbacks (TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2261)
at android.os.Handler.dispatchMessage (Handler.java:107)
at android.os.Looper.loop (Looper.java:237)
at android.app.ActivityThread.main (ActivityThread.java:8107)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:496)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1100)
Caused by: java.lang.NullPointerException:
at wave10.co.uk.wave10.Power_Volt.GooglePlayServicesExtension.onActivityResult (GooglePlayServicesExtension.java:255)
at wave10.co.uk.wave10.Power_Volt.RunnerActivity.onActivityResult (RunnerActivity.java:1201)
at android.app.Activity.dispatchActivityResult (Activity.java:8294)
at android.app.ActivityThread.deliverResults (ActivityThread.java:5317)
And here is the Java code it relates to:
Java:
@Override
public void onActivityResult(int requestCode, int responseCode, Intent intent)
{
Log.i("yoyo","gps onActivityResult called. RequestCode: "+requestCode + ". ResponseCode: " + responseCode);
switch (requestCode)
{
case RC_SIGN_IN:
mSignInClicked = false;
GoogleSignInResult result = Auth.GoogleSignInApi.getSignInResultFromIntent(intent);
if (result.isSuccess()) // THIS IS LINE 255 (WHERE THE ERROR HAPPENS) <<<<<<<<<<<<<< !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
{
// The signed in account is stored in the result.
mGoogleSignInAccount = result.getSignInAccount();
onLoginSuccess(mGoogleSignInAccount);
}
else
{
String message = result.getStatus().getStatusMessage();
int statuscode = result.getStatus().getStatusCode();
boolean hasresolution = result.getStatus().hasResolution();
if (message == null || message.isEmpty())
{
Log.i("yoyo", "signInResult:failed, no status message returned. Status Code:"+statuscode +" Has resolution:" + hasresolution);
}
else
{
Log.i("yoyo", "signInResult:failed:"+message+" Status Code:"+statuscode+" Has resolution:" + hasresolution);
}
onLoginFailed();
}
break;
case RC_GPS_ACTIVITY:
{
if(responseCode == GamesActivityResultCodes.RESULT_RECONNECT_REQUIRED)
{
Log.i("yoyo","Activity result resulted in reconnect required");
Logout();
}
}
break;
default:
Log.i("yoyo","onActivityResult called with " + requestCode);
break;
}
}