java.lang.NullPointerException: Attempt to invoke interface method 'void cyanogenmod.app.ICMStatusBarManager.registerListener(cyanogenmod.app.ICustomTileListener, android.content.ComponentName, int)' on a null object reference

JIRA | Ivan Efremov | 2 years ago
  1. 0

    After upgrade no interface shown, How to reproduce: just update from cm-12.1-20150512-NIGHTLY-serranoltexx to any cm-12.1-20150513-NIGHTLY-serranoltexx cm-12.1-20150514-NIGHTLY-serranoltexx cm-12.1-20150515-NIGHTLY-serranoltexx info from /data/system/dropbox/system_app_crash@1431695089465.txt: Process: com.android.systemui Flags: 0x40c83e0d Package: com.android.systemui v22 (5.1.1-57c37035e6) Build: samsung/serranoltexx/serranolte:4.4.2/KOT49H/I9195XXUCNE6:user/release-keys java.lang.NullPointerException: Attempt to invoke interface method 'void cyanogenmod.app.ICMStatusBarManager.registerListener(cyanogenmod.app.ICustomTileListener, android.content.ComponentName, int)' on a null object reference at cyanogenmod.app.CustomTileListenerService.registerAsSystemService(CustomTileListenerService.java:98) at com.android.systemui.statusbar.phone.QSTileHost.<init>(QSTileHost.java:170) at com.android.systemui.statusbar.phone.PhoneStatusBar.makeStatusBarView(PhoneStatusBar.java:1277) at com.android.systemui.statusbar.phone.PhoneStatusBar.addStatusBarWindow(PhoneStatusBar.java:3637) at com.android.systemui.statusbar.phone.PhoneStatusBar.createAndAddWindows(PhoneStatusBar.java:3609) at com.android.systemui.statusbar.BaseStatusBar.start(BaseStatusBar.java:582) at com.android.systemui.statusbar.phone.PhoneStatusBar.start(PhoneStatusBar.java:841) at com.android.systemui.statusbar.SystemBars.createStatusBarFromConfig(SystemBars.java:106) at com.android.systemui.statusbar.SystemBars.onNoService(SystemBars.java:58) at com.android.systemui.statusbar.ServiceMonitor.startService(ServiceMonitor.java:228) at com.android.systemui.statusbar.ServiceMonitor.access$000(ServiceMonitor.java:49) at com.android.systemui.statusbar.ServiceMonitor$1.handleMessage(ServiceMonitor.java:73) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5293) 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)

    JIRA | 2 years ago | Ivan Efremov
    java.lang.NullPointerException: Attempt to invoke interface method 'void cyanogenmod.app.ICMStatusBarManager.registerListener(cyanogenmod.app.ICustomTileListener, android.content.ComponentName, int)' on a null object reference
  2. 0

    After upgrade no interface shown, How to reproduce: just update from cm-12.1-20150512-NIGHTLY-serranoltexx to any cm-12.1-20150513-NIGHTLY-serranoltexx cm-12.1-20150514-NIGHTLY-serranoltexx cm-12.1-20150515-NIGHTLY-serranoltexx info from /data/system/dropbox/system_app_crash@1431695089465.txt: Process: com.android.systemui Flags: 0x40c83e0d Package: com.android.systemui v22 (5.1.1-57c37035e6) Build: samsung/serranoltexx/serranolte:4.4.2/KOT49H/I9195XXUCNE6:user/release-keys java.lang.NullPointerException: Attempt to invoke interface method 'void cyanogenmod.app.ICMStatusBarManager.registerListener(cyanogenmod.app.ICustomTileListener, android.content.ComponentName, int)' on a null object reference at cyanogenmod.app.CustomTileListenerService.registerAsSystemService(CustomTileListenerService.java:98) at com.android.systemui.statusbar.phone.QSTileHost.<init>(QSTileHost.java:170) at com.android.systemui.statusbar.phone.PhoneStatusBar.makeStatusBarView(PhoneStatusBar.java:1277) at com.android.systemui.statusbar.phone.PhoneStatusBar.addStatusBarWindow(PhoneStatusBar.java:3637) at com.android.systemui.statusbar.phone.PhoneStatusBar.createAndAddWindows(PhoneStatusBar.java:3609) at com.android.systemui.statusbar.BaseStatusBar.start(BaseStatusBar.java:582) at com.android.systemui.statusbar.phone.PhoneStatusBar.start(PhoneStatusBar.java:841) at com.android.systemui.statusbar.SystemBars.createStatusBarFromConfig(SystemBars.java:106) at com.android.systemui.statusbar.SystemBars.onNoService(SystemBars.java:58) at com.android.systemui.statusbar.ServiceMonitor.startService(ServiceMonitor.java:228) at com.android.systemui.statusbar.ServiceMonitor.access$000(ServiceMonitor.java:49) at com.android.systemui.statusbar.ServiceMonitor$1.handleMessage(ServiceMonitor.java:73) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5293) 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)

    JIRA | 2 years ago | Ivan Efremov
    java.lang.NullPointerException: Attempt to invoke interface method 'void cyanogenmod.app.ICMStatusBarManager.registerListener(cyanogenmod.app.ICustomTileListener, android.content.ComponentName, int)' on a null object reference
  3. 0
    Initialize the variable before calling a method on it.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    Use 'dialog' to access views from custom_layout layout.
  6. 0
    The resource was accessed after it was dismissed.

    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 interface method 'void cyanogenmod.app.ICMStatusBarManager.registerListener(cyanogenmod.app.ICustomTileListener, android.content.ComponentName, int)' on a null object reference

      at cyanogenmod.app.CustomTileListenerService.registerAsSystemService()
    2. cyanogenmod.app
      CustomTileListenerService.registerAsSystemService
      1. cyanogenmod.app.CustomTileListenerService.registerAsSystemService(CustomTileListenerService.java:98)
      1 frame
    3. com.android.systemui
      ServiceMonitor$1.handleMessage
      1. com.android.systemui.statusbar.phone.QSTileHost.<init>(QSTileHost.java:170)
      2. com.android.systemui.statusbar.phone.PhoneStatusBar.makeStatusBarView(PhoneStatusBar.java:1277)
      3. com.android.systemui.statusbar.phone.PhoneStatusBar.addStatusBarWindow(PhoneStatusBar.java:3637)
      4. com.android.systemui.statusbar.phone.PhoneStatusBar.createAndAddWindows(PhoneStatusBar.java:3609)
      5. com.android.systemui.statusbar.BaseStatusBar.start(BaseStatusBar.java:582)
      6. com.android.systemui.statusbar.phone.PhoneStatusBar.start(PhoneStatusBar.java:841)
      7. com.android.systemui.statusbar.SystemBars.createStatusBarFromConfig(SystemBars.java:106)
      8. com.android.systemui.statusbar.SystemBars.onNoService(SystemBars.java:58)
      9. com.android.systemui.statusbar.ServiceMonitor.startService(ServiceMonitor.java:228)
      10. com.android.systemui.statusbar.ServiceMonitor.access$000(ServiceMonitor.java:49)
      11. com.android.systemui.statusbar.ServiceMonitor$1.handleMessage(ServiceMonitor.java:73)
      11 frames
    4. 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:5293)
      3 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    6. 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