java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ImageButton.setVisibility(int)' on a null object reference

GitHub | forumber | 5 months ago
  1. 0

    GitHub comment 84#241204612

    GitHub | 5 months ago | forumber
    java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ImageButton.setVisibility(int)' on a null object reference
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0
    Initialize the variable before calling a method on it.
  4. 0
    Use 'dialog' to access views from custom_layout layout.

    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.widget.ImageButton.setVisibility(int)' on a null object reference

      at com.marz.snapprefs.HookMethods$1$3.afterHookedMethod()
    2. com.marz.snapprefs
      HookMethods$1$3.afterHookedMethod
      1. com.marz.snapprefs.HookMethods$1$3.afterHookedMethod(HookMethods.java:509)
      1 frame
    3. XposedBridge
      XposedBridge.handleHookedMethod
      1. de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:348)
      1 frame