java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by lsh93
, 9 months ago
Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference
at com.specher.sm.HookSensor$1.afterHookedMethod(HookSensor.java:111)
at android.hardware.SensorManager.getSensorList()
at com.yuedong.stepdetector.StepDetector.start(SourceFile:226)
at com.yuedong.sport.controller.stepdetect.StepDetectorEngine.startSoftDetector(SourceFile:84)
at com.yuedong.sport.controller.stepdetect.StepDetectorEngine.startDetect(SourceFile:198)
at com.yuedong.sport.controller.stepdetect.StepDetectorEngine.start(SourceFile:107)
at com.yuedong.sport.controller.stepdetect.ServiceAutoStep.k(SourceFile:529)
at com.yuedong.sport.controller.stepdetect.ServiceAutoStep.onStartCommand(SourceFile:371)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3017)
at android.app.ActivityThread.access$2200(ActivityThread.java:153)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1449)
at org.acdd.hack.AndroidHack$HandlerHack.handleMessage(SourceFile:201)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5441)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:738)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:102)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.