java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.view.InputDevice.getName()' on a null object reference

Stack Overflow | irevo mm | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    app crashes on uiautomator run command on android 5.1.1

    Stack Overflow | 7 months ago | irevo mm
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.view.InputDevice.getName()' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'java.lang.String android.view.InputDevice.getName()' on a null object reference

      at com.android.internal.policy.impl.NavBarEventListener.onPointerEvent()
    2. Android
      PointerEventDispatcher.onInputEvent
      1. com.android.internal.policy.impl.NavBarEventListener.onPointerEvent(NavBarEventListener.java:89)
      2. com.android.server.wm.PointerEventDispatcher.onInputEvent(PointerEventDispatcher.java:53)
      2 frames
    3. Android Platform
      HandlerThread.run
      1. android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)
      2. android.os.MessageQueue.nativePollOnce(Native Method)
      3. android.os.MessageQueue.next(MessageQueue.java:160)
      4. android.os.Looper.loop(Looper.java:122)
      5. android.os.HandlerThread.run(HandlerThread.java:61)
      5 frames
    4. Android
      ServiceThread.run
      1. com.android.server.ServiceThread.run(ServiceThread.java:46)
      1 frame