Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException #66

Closed
xuefer opened this issue Mar 3, 2016 · 2 comments
Closed

NullPointerException #66

xuefer opened this issue Mar 3, 2016 · 2 comments

Comments

@xuefer
Copy link

xuefer commented Mar 3, 2016

java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.os.Bundle.containsKey(java.lang.String)' on a null object reference
    at org.microg.tools.selfcheck.NlpStatusChecks$2.onLocationChanged(NlpStatusChecks.java:106)
    at android.location.LocationManager$ListenerTransport._handleMessage(LocationManager.java:285)
    at android.location.LocationManager$ListenerTransport.-wrap0(LocationManager.java)
    at android.location.LocationManager$ListenerTransport$1.handleMessage(LocationManager.java:230)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:148)
    at android.app.ActivityThread.main(ActivityThread.java:5466)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
    at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:117)

CM-13.0. UnifiedNlp.apk is moved to /system/priv-app/UnifiedNlp/UnifiedNlp.apk, resource override'd using xposed
exception thrown after clicking "Self-check"

using UnifiedNlp.apk 1.6.0 (but apps says 1.5.1)

mar-v-in added a commit that referenced this issue Mar 3, 2016
@mar-v-in
Copy link
Member

mar-v-in commented Mar 3, 2016

Should be fixed in v1.6.1

@mar-v-in mar-v-in closed this as completed Mar 3, 2016
@xuefer
Copy link
Author

xuefer commented Mar 4, 2016

03-04 23:44:07.035 14145 14145 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.os.Bundle.containsKey(java.lang.String)' on a null object reference
03-04 23:44:07.035 14145 14145 E AndroidRuntime:        at org.microg.tools.selfcheck.NlpStatusChecks$2.onLocationChanged(NlpStatusChecks.java:106)
03-04 23:44:07.035 14145 14145 E AndroidRuntime:        at android.location.LocationManager$ListenerTransport._handleMessage(LocationManager.java:285)
03-04 23:44:07.035 14145 14145 E AndroidRuntime:        at android.location.LocationManager$ListenerTransport.-wrap0(LocationManager.java)
03-04 23:44:07.035 14145 14145 E AndroidRuntime:        at android.location.LocationManager$ListenerTransport$1.handleMessage(LocationManager.java:230)
03-04 23:44:07.035 14145 14145 E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:102)
03-04 23:44:07.035 14145 14145 E AndroidRuntime:        at android.os.Looper.loop(Looper.java:148)
03-04 23:44:07.035 14145 14145 E AndroidRuntime:        at android.app.ActivityThread.main(ActivityThread.java:5466)
03-04 23:44:07.035 14145 14145 E AndroidRuntime:        at java.lang.reflect.Method.invoke(Native Method)
03-04 23:44:07.035 14145 14145 E AndroidRuntime:        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
03-04 23:44:07.035 14145 14145 E AndroidRuntime:        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

reproduced in 1.6.1 too

from the exception, it's containsKey's "this" is null, which mean location.getExtras() is null, not location

mar-v-in added a commit that referenced this issue Mar 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@mar-v-in @xuefer and others