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

I build your source code in my project,and get this problem when checking mem leak.why? #4

Open
wangsheng115 opened this issue Feb 20, 2016 · 3 comments

Comments

@wangsheng115
Copy link

java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
at com.squareup.leakcanary.HeapAnalyzer.findLeakingReference(HeapAnalyzer.java:160)
at com.squareup.leakcanary.HeapAnalyzer.checkForLeak(HeapAnalyzer.java:95)
at com.squareup.leakcanary.internal.HeapAnalyzerService.onHandleIntent(HeapAnalyzerService.java:57)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:66)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loop(Looper.java:207)
at android.os.HandlerThread.run(HandlerThread.java:61)

@xxlyu-2046
Copy link

may be the Android API level problem,try to run it on lower API

@ZJsnowman
Copy link

@xiadeye you are right .change a phone with lower api

@Lee-swifter
Copy link

I got this problem on my xiaomi (api 23), but when I tested this on an old phone (api 19), it worked OK.
I think you need to use a older phone to test as @xiadeye said.

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

4 participants