java.lang.RuntimeException: Unable to start activity ComponentInfo{dji.pilot/dji.pilot.fpv.activity.DJIPreviewActivityLitchi}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.view.ViewGroup.getGlobalVisibleRect(android.graphics.Rect, android.graphics.Point)' on a null object reference

phantompilots.com | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    DJI GO always crashes when disconnected - See Log inside | DJI Phantom Drone Forum

    phantompilots.com | 7 months ago
    java.lang.RuntimeException: Unable to start activity ComponentInfo{dji.pilot/dji.pilot.fpv.activity.DJIPreviewActivityLitchi}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.view.ViewGroup.getGlobalVisibleRect(android.graphics.Rect, android.graphics.Point)' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'boolean android.view.ViewGroup.getGlobalVisibleRect(android.graphics.Rect, android.graphics.Point)' on a null object reference

      at dji.pilot.fpv.leftmenu.DJILeftMenu.getMutexRect()
    2. dji.pilot.fpv
      DJIPreviewActivityLitchi.onCreate
      1. dji.pilot.fpv.leftmenu.DJILeftMenu.getMutexRect(Unknown Source)
      2. dji.pilot.fpv.leftmenu.DJILeftMenu.d(Unknown Source)
      3. dji.pilot.fpv.leftmenu.DJILeftMenu.onEventMainThread(Unknown Source)
      4. dji.pilot.fpv.leftmenu.DJILeftMenu.dispatchOnCreate(Unknown Source)
      5. dji.pilot.fpv.leftmenu.DJILeftBar.dispatchOnCreate(Unknown Source)
      6. dji.pilot.fpv.activity.DJIPreviewActivityLitchi.l(Unknown Source)
      7. dji.pilot.fpv.activity.DJIPreviewActivityLitchi.onCreate(Unknown Source)
      7 frames
    3. Android Platform
      ActivityThread.main
      1. android.app.Activity.performCreate(Activity.java:6550)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1120)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3102)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3248)
      5. android.app.ActivityThread.access$1000(ActivityThread.java:197)
      6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1681)
      7. android.os.Handler.dispatchMessage(Handler.java:102)
      8. android.os.Looper.loop(Looper.java:145)
      9. android.app.ActivityThread.main(ActivityThread.java:6872)
      9 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:1404)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)
      2 frames