java.lang.NullPointerException: Attempt to invoke virtual method 'void android.preference.ListPreference.setValue(java.lang.String)' on a null object reference

JIRA | OldNightlyBug | 1 year ago
  1. 0

    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

    JIRA | 1 year ago | OldNightlyBug
    java.lang.NullPointerException: Attempt to invoke virtual method 'void android.preference.ListPreference.setValue(java.lang.String)' on a null object reference
  2. 0

    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

    JIRA | 1 year ago | OldNightlyBug
    java.lang.NullPointerException: Attempt to invoke virtual method 'void android.preference.ListPreference.setValue(java.lang.String)' on a null object reference
  3. 0

    线刷全清脚本点击声音和震动选项FC_设置_MIUI论坛

    miui.com | 8 months ago
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.SubSettings}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.preference.ListPreference.setValue(java.lang.String)' on a null object reference
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java.lang.RuntimeException: Unable to resume activity {net.kindows.chitchat/net.kindows.chitchat.LoginActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.eclipse.paho.android.service.MqttService.disconnect(java.lang.String, java.lang.String, java.lang.String)' on a null object reference

    GitHub | 6 months ago | dmsherazi
    java.lang.RuntimeException: Unable to resume activity {net.kindows.chitchat/net.kindows.chitchat.LoginActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.eclipse.paho.android.service.MqttService.disconnect(java.lang.String, java.lang.String, java.lang.String)' on a null object reference
  6. 0

    java.lang.RuntimeException: Unable to stop activity {net.kindows.chitchat/net.kindows.chitchat.LoginActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.eclipse.paho.android.service.MqttService.disconnect(java.lang.String, java.lang.String, java.lang.String)' on a null object reference

    GitHub | 6 months ago | dmsherazi
    java.lang.RuntimeException: Unable to stop activity {net.kindows.chitchat/net.kindows.chitchat.LoginActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.eclipse.paho.android.service.MqttService.disconnect(java.lang.String, java.lang.String, java.lang.String)' on a null object reference

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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()
    2. com.android.phone
      MobileNetworkSettings$MyHandler.handleMessage
      1. com.android.phone.MobileNetworkSettings$MyHandler.resetNetworkModeToDefault(MobileNetworkSettings.java:773)
      2. com.android.phone.MobileNetworkSettings$MyHandler.handleGetPreferredNetworkTypeResponse(MobileNetworkSettings.java:734)
      3. com.android.phone.MobileNetworkSettings$MyHandler.handleMessage(MobileNetworkSettings.java:655)
      3 frames
    3. Android Platform
      ActivityThread.main
      1. android.os.Handler.dispatchMessage(Handler.java:102)
      2. android.os.Looper.loop(Looper.java:135)
      3. android.app.ActivityThread.main(ActivityThread.java:5289)
      3 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)
      2 frames