play-services-plugins
play-services-plugins copied to clipboard
java.lang.NullPointerException: Attempt to invoke virtual method long d.e.a.a.c.f.c.e()
Describe the bug
We launch the OssLicensesMenuActivity with this lines:
OssLicensesMenuActivity.setActivityTitle(getString(R.string.oss_activity_title));
startActivity(new Intent(this, OssLicensesMenuActivity.class));
The app is crashing with the stacktrace below in rooted devices, (deduced finding the XposedBridge line at the root level)
Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'long d.e.a.a.c.f.c.e()' on a null object reference
at com.google.android.gms.internal.oss_licenses.zze.zza(zze.java:19)
at com.google.android.gms.oss.licenses.zzf.onComplete(zzf.java:28)
at com.google.android.gms.tasks.zzj.run(zzj.java:4)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6119)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:107)
Expected behavior Application should not crash, if in rooted devices (maybe with missing play services) there is no way for the Activity to open/work correctly, finish it gracefully.
Desktop (please complete the following information):
- Gradle version: 5.6.4
- Android Studio version: 3.6.2
- Plugin name and version: oss-licenses-plugin 0.10.1