Nullpointer Exception

Status

closed

Resolution

open

Priority

normal

Severity

minor

Turf Version

0.9.9.6 supporter release - please upgrade

Steps to reproduce

I was walking between zones and talked on the phone. Turf application crashed.

Description

Crash in turf application. I have tried to get the relevant parts of the bugreport: 09-01 16:29:55.812 10399 10399 W ResourcesManager: Asset path '/system/framework/com.android.media.remotedisplay.jar' does not exist or contains no resources. 09-01 16:29:55.813 10399 10399 W ResourcesManager: Asset path '/system/framework/com.android.location.provider.jar' does not exist or contains no resources. 09-01 16:30:00.070 10399 10399 E AndroidRuntime: FATAL EXCEPTION: main 09-01 16:30:00.070 10399 10399 E AndroidRuntime: Process: com.andrimon.turf.android, PID: 10399 09-01 16:30:00.070 10399 10399 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.andrimon.turf.android/com.andrimon.turf.android.activity.Main}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.location.LocationManager.isProviderEnabled(java.lang.String)' on a null object reference 09-01 16:30:00.070 10399 10399 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2344) 09-01 16:30:00.070 10399 10399 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2404) 09-01 16:30:00.070 10399 10399 E AndroidRuntime: at android.app.ActivityThread.access$800(ActivityThread.java:145) 09-01 16:30:00.070 10399 10399 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1323) 09-01 16:30:00.070 10399 10399 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102) 09-01 16:30:00.070 10399 10399 E AndroidRuntime: at android.os.Looper.loop(Looper.java:135) 09-01 16:30:00.070 10399 10399 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5319) 09-01 16:30:00.070 10399 10399 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 09-01 16:30:00.070 10399 10399 E AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:372) 09-01 16:30:00.070 10399 10399 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1016) 09-01 16:30:00.070 10399 10399 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:811) 09-01 16:30:00.070 10399 10399 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.location.LocationManager.isProviderEnabled(java.lang.String)' on a null object reference 09-01 16:30:00.070 10399 10399 E AndroidRuntime: at com.andrimon.turf.j.a(Unknown Source) 09-01 16:30:00.070 10399 10399 E AndroidRuntime: at com.andrimon.turf.android.activity.Main.a(Unknown Source) 09-01 16:30:00.070 10399 10399 E AndroidRuntime: at com.andrimon.turf.android.activity.Main.onCreate(Unknown Source) 09-01 16:30:00.070 10399 10399 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:5976) 09-01 16:30:00.070 10399 10399 E AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105) 09-01 16:30:00.070 10399 10399 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2297) 09-01 16:30:00.070 10399 10399 E AndroidRuntime: ... 10 more

Reported by

Issue ID

#3218

Date submitted

2015-09-01T17:48:06+02:00

Attachments

No attachments.

Related issues

No related issues.

Responses

happyf

Date: 2017-10-08T09:27:39+02:00

Vi städar upp bland gamla issues och stänger dem. De flesta ska vara lösta eller inaktuella, men upplever du fortfarande problem så ber vi dig lägga en ny issue. We are cleaning up old issues and closing them. Most of them should be solved or out of date. If you still have a problem, please post a new issue.

Add comment or attachment

Comments or attachments cannot be added to this issue. If you think that this issue is not solved properly, please submit a new issue.


© 2012-2013. All rights reserved.