java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.support.v4.widget.DrawerLayout.findViewById(int)' on a null object reference

Stack Overflow | Motaz Ahmed | 7 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    how to open the navigation drawer from a link in a webvew

    Stack Overflow | 7 months ago | Motaz Ahmed
    java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.support.v4.widget.DrawerLayout.findViewById(int)' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'android.view.View android.support.v4.widget.DrawerLayout.findViewById(int)' on a null object reference

      at com.gedroid.ilprimo3.WebAppInterface.openMenu()
    2. com.gedroid.ilprimo3
      WebAppInterface.openMenu
      1. com.gedroid.ilprimo3.WebAppInterface.openMenu(WebAppInterface.java:95)
      1 frame
    3. org.chromium.base
      SystemMessageHandler.handleMessage
      1. org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method)
      2. org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:53)
      2 frames
    4. Android Platform
      HandlerThread.run
      1. android.os.Handler.dispatchMessage(Handler.java:102)
      2. android.os.Looper.loop(Looper.java:148)
      3. android.os.HandlerThread.run(HandlerThread.java:61)
      3 frames