Closed atakankaya closed 8 years ago
Am seeing this too. Exact same NPE and stack trace because intent is null.
A possible workaround is code below on the Activity you called googleApi.getErrorDialog.
@Override
public void startActivityForResult(Intent intent, int requestCode) {
if (intent != null) {
super.startActivityForResult(intent, requestCode);
}
}
OR
@Override
public void startActivityForResult(Intent intent, int requestCode) {
if (intent == null) {
intent = new Intent();
}
super.startActivityForResult(intent, requestCode);
}
I prefer the second one.
Hi,
thanks for your report. I asked a colleague to investigate and I will report any update in the coming days.
I tested with the new release of GCM today and the problem still continues on 9.2.1
The bug has been identified. We will release a fix in a future release (unfortunately the release will happen in few months)
also please note that such error is generated when the device doesn't include Google Play Store.
The fix that will be released will prevent the NullPointerException exception, but the user will not be able to proceed anyway, since the lack of Google Play Store means that there is no way to install Google Play services.
Is this issue fixed with latest 9.4.0 release?
Yes! I don't see the release notes online yet, but 9.4.0 should include the fix.
Unfortunately it is still reproduced with 9.4.0. We had about 800 crashes yesterday. Probably because we swithed to firebase only.
compile 'com.google.firebase:firebase-ads:9.4.0' compile 'com.google.firebase:firebase-messaging:9.4.0' compile 'com.google.firebase:firebase-config:9.4.0'
Hi, i'm unable to fix this issue as my playservices version is 16.0.0
It got fixed after adding this code in Manifest
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" tools:ignore="QueryAllPackagesPermission" />
Hi,
On our launcher activity, we do the below check in order show a dialog stating that Google Play Services are not supported in case it is not available on the device.
On Genymotion emulators (and I guess on any rooted device where no Google Play Services is installed), we receive below crash upon clicking the OK button:
And when I debug on
android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:871)
I see that the argumentintent
is null. This issue started to happen when we switched from 7.3.0 to 9.2.0.Is there any workaround for this?