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
, 1 year 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 de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:348)	at android.hardware.SensorManager.getSensorList()	at android.hardware.SensorManager.getDefaultSensor(SensorManager.java:449)	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 java.lang.reflect.Method.invoke(Native Method)	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:738)	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:628)	at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:102)