java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Going to "Settings → Mobile Networks" com.android.phone stops. I also cannot enable the mobile data with the switch in Settings. It has been so last month, and it also happens with the nightly of 2015-06-19. Last time it worked is beyond one month ago; I can't remember, though. I use Mobile Data rarely, and now I decided to report it. The phone is a Moto G with 3G, not 4G, and without SD card capability (1st generation, I think). Here is the crash log from CatLog: 06-19 19:44:36.633 I/Timeline(16874): Timeline: Activity_idle id: android.os.BinderProxy@3f81ab8f time:2108184 06-19 19:44:36.650 D/Index (16874): Deleting data for locale 'ca_ES' took 15 millis 06-19 19:44:36.708 D/Index (16874): Indexing locale 'ca_ES' took 58 millis 06-19 19:44:36.831 I/Timeline(829): Timeline: Activity_windows_visible id: ActivityRecord{e8818a5 u0 com.android.settings/.Settings t2985} time:2108382 06-19 19:44:37.684 I/MQClient(2448): unable to connect to [/data/misc/location/mq/location-mq-s]:[No such file or directory] 06-19 19:44:37.684 W/XTWiFiLP(2448): connection failure. count 14 06-19 19:44:37.740 I/Timeline(16874): Timeline: Activity_launch_request id:com.android.phone time:2109291 06-19 19:44:37.740 I/ActivityManager(829): START u0 {act=android.intent.action.MAIN cmp=com.android.phone/.MobileNetworkSettings} from uid 1000 on display 0 06-19 19:44:37.748 V/WindowManager(829): addAppToken: AppWindowToken{3e39656 token=Token{868e871 ActivityRecord{22e41618 u0 com.android.phone/.MobileNetworkSettings t2985}}} to stack=1 task=2985 at 1 06-19 19:44:37.847 D/NetworkSettings(9836): Settings onCreate phoneId =0 06-19 19:44:37.878 D/GsmUmtsOptions(9836): Not a CDMA phone 06-19 19:44:37.879 D/GsmUmtsOptions(9836): updateOperatorSelectionVisibility. mPhone = GSM 06-19 19:44:37.883 D/NetworkSettings(9836): settingsNetworkMode: 7 06-19 19:44:37.896 D/OpenGLRenderer(9836): Use EGL_SWAP_BEHAVIOR_PRESERVED: true 06-19 19:44:37.907 D/Atlas (9836): Validating map... 06-19 19:44:37.913 V/WindowManager(829): Adding window Window{3b439973 u0 com.android.phone/com.android.phone.MobileNetworkSettings} at 9 of 15 (after Window{2c505bb8 u0 com.android.settings/com.android.settings.Settings}) 06-19 19:44:37.918 D/NetworkSettings(9836): handleGetPreferredNetworkTypeResponse: modemNetworkMode = 7 06-19 19:44:37.919 D/NetworkSettings(9836): handleGetPreferredNetworkTypeReponse: settingsNetworkMode = 7 06-19 19:44:37.920 D/NetworkSettings(9836): handleGetPreferredNetworkTypeResponse: else: reset to default 06-19 19:44:37.925 D/AndroidRuntime(9836): Shutting down VM 06-19 19:44:37.926 E/AndroidRuntime(9836): FATAL EXCEPTION: main 06-19 19:44:37.926 E/AndroidRuntime(9836): Process: com.android.phone, PID: 9836 06-19 19:44:37.926 E/AndroidRuntime(9836): java.lang.NullPointerException: Attempt to invoke virtual method 'void android.preference.ListPreference.setValue(java.lang.String)' on a null object reference 06-19 19:44:37.926 E/AndroidRuntime(9836): at com.android.phone.MobileNetworkSettings$MyHandler.resetNetworkModeToDefault(MobileNetworkSettings.java:773) 06-19 19:44:37.926 E/AndroidRuntime(9836): at com.android.phone.MobileNetworkSettings$MyHandler.handleGetPreferredNetworkTypeResponse(MobileNetworkSettings.java:734) 06-19 19:44:37.926 E/AndroidRuntime(9836): at com.android.phone.MobileNetworkSettings$MyHandler.handleMessage(MobileNetworkSettings.java:655) 06-19 19:44:37.926 E/AndroidRuntime(9836): at android.os.Handler.dispatchMessage(Handler.java:102) 06-19 19:44:37.926 E/AndroidRuntime(9836): at android.os.Looper.loop(Looper.java:135) 06-19 19:44:37.926 E/AndroidRuntime(9836): at android.app.ActivityThread.main(ActivityThread.java:5289) 06-19 19:44:37.926 E/AndroidRuntime(9836): at java.lang.reflect.Method.invoke(Native Method) 06-19 19:44:37.926 E/AndroidRuntime(9836): at java.lang.reflect.Method.invoke(Method.java:372) 06-19 19:44:37.926 E/AndroidRuntime(9836): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904) 06-19 19:44:37.926 E/AndroidRuntime(9836): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699) 06-19 19:44:37.929 W/ActivityManager(829): Force finishing activity 1 com.android.phone/.MobileNetworkSettings 06-19 19:44:37.933 W/DropBoxManagerService(829): Dropping: system_app_crash (1153 > 0 bytes) 06-19 19:44:37.935 W/ActivityManager(829): Force finishing activity 2 com.android.settings/.Settings
    via by OldNightlyBug,
  • Going to "Settings → Mobile Networks" com.android.phone stops. I also cannot enable the mobile data with the switch in Settings. It has been so last month, and it also happens with the nightly of 2015-06-19. Last time it worked is beyond one month ago; I can't remember, though. I use Mobile Data rarely, and now I decided to report it. The phone is a Moto G with 3G, not 4G, and without SD card capability (1st generation, I think). Here is the crash log from CatLog: 06-19 19:44:36.633 I/Timeline(16874): Timeline: Activity_idle id: android.os.BinderProxy@3f81ab8f time:2108184 06-19 19:44:36.650 D/Index (16874): Deleting data for locale 'ca_ES' took 15 millis 06-19 19:44:36.708 D/Index (16874): Indexing locale 'ca_ES' took 58 millis 06-19 19:44:36.831 I/Timeline(829): Timeline: Activity_windows_visible id: ActivityRecord{e8818a5 u0 com.android.settings/.Settings t2985} time:2108382 06-19 19:44:37.684 I/MQClient(2448): unable to connect to [/data/misc/location/mq/location-mq-s]:[No such file or directory] 06-19 19:44:37.684 W/XTWiFiLP(2448): connection failure. count 14 06-19 19:44:37.740 I/Timeline(16874): Timeline: Activity_launch_request id:com.android.phone time:2109291 06-19 19:44:37.740 I/ActivityManager(829): START u0 {act=android.intent.action.MAIN cmp=com.android.phone/.MobileNetworkSettings} from uid 1000 on display 0 06-19 19:44:37.748 V/WindowManager(829): addAppToken: AppWindowToken{3e39656 token=Token{868e871 ActivityRecord{22e41618 u0 com.android.phone/.MobileNetworkSettings t2985}}} to stack=1 task=2985 at 1 06-19 19:44:37.847 D/NetworkSettings(9836): Settings onCreate phoneId =0 06-19 19:44:37.878 D/GsmUmtsOptions(9836): Not a CDMA phone 06-19 19:44:37.879 D/GsmUmtsOptions(9836): updateOperatorSelectionVisibility. mPhone = GSM 06-19 19:44:37.883 D/NetworkSettings(9836): settingsNetworkMode: 7 06-19 19:44:37.896 D/OpenGLRenderer(9836): Use EGL_SWAP_BEHAVIOR_PRESERVED: true 06-19 19:44:37.907 D/Atlas (9836): Validating map... 06-19 19:44:37.913 V/WindowManager(829): Adding window Window{3b439973 u0 com.android.phone/com.android.phone.MobileNetworkSettings} at 9 of 15 (after Window{2c505bb8 u0 com.android.settings/com.android.settings.Settings}) 06-19 19:44:37.918 D/NetworkSettings(9836): handleGetPreferredNetworkTypeResponse: modemNetworkMode = 7 06-19 19:44:37.919 D/NetworkSettings(9836): handleGetPreferredNetworkTypeReponse: settingsNetworkMode = 7 06-19 19:44:37.920 D/NetworkSettings(9836): handleGetPreferredNetworkTypeResponse: else: reset to default 06-19 19:44:37.925 D/AndroidRuntime(9836): Shutting down VM 06-19 19:44:37.926 E/AndroidRuntime(9836): FATAL EXCEPTION: main 06-19 19:44:37.926 E/AndroidRuntime(9836): Process: com.android.phone, PID: 9836 06-19 19:44:37.926 E/AndroidRuntime(9836): java.lang.NullPointerException: Attempt to invoke virtual method 'void android.preference.ListPreference.setValue(java.lang.String)' on a null object reference 06-19 19:44:37.926 E/AndroidRuntime(9836): at com.android.phone.MobileNetworkSettings$MyHandler.resetNetworkModeToDefault(MobileNetworkSettings.java:773) 06-19 19:44:37.926 E/AndroidRuntime(9836): at com.android.phone.MobileNetworkSettings$MyHandler.handleGetPreferredNetworkTypeResponse(MobileNetworkSettings.java:734) 06-19 19:44:37.926 E/AndroidRuntime(9836): at com.android.phone.MobileNetworkSettings$MyHandler.handleMessage(MobileNetworkSettings.java:655) 06-19 19:44:37.926 E/AndroidRuntime(9836): at android.os.Handler.dispatchMessage(Handler.java:102) 06-19 19:44:37.926 E/AndroidRuntime(9836): at android.os.Looper.loop(Looper.java:135) 06-19 19:44:37.926 E/AndroidRuntime(9836): at android.app.ActivityThread.main(ActivityThread.java:5289) 06-19 19:44:37.926 E/AndroidRuntime(9836): at java.lang.reflect.Method.invoke(Native Method) 06-19 19:44:37.926 E/AndroidRuntime(9836): at java.lang.reflect.Method.invoke(Method.java:372) 06-19 19:44:37.926 E/AndroidRuntime(9836): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904) 06-19 19:44:37.926 E/AndroidRuntime(9836): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699) 06-19 19:44:37.929 W/ActivityManager(829): Force finishing activity 1 com.android.phone/.MobileNetworkSettings 06-19 19:44:37.933 W/DropBoxManagerService(829): Dropping: system_app_crash (1153 > 0 bytes) 06-19 19:44:37.935 W/ActivityManager(829): Force finishing activity 2 com.android.settings/.Settings
    via by OldNightlyBug,
    • java.lang.NullPointerException: Attempt to invoke virtual method 'void android.preference.ListPreference.setValue(java.lang.String)' on a null object reference at com.android.phone.MobileNetworkSettings$MyHandler.resetNetworkModeToDefault(MobileNetworkSettings.java:773) at com.android.phone.MobileNetworkSettings$MyHandler.handleGetPreferredNetworkTypeResponse(MobileNetworkSettings.java:734) at com.android.phone.MobileNetworkSettings$MyHandler.handleMessage(MobileNetworkSettings.java:655) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5289) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)
    No Bugmate found.