java.lang.NullPointerException: Attempt to invoke interface method 'android.view.MenuItem android.view.MenuItem.setTitle(int)' on a null object reference

GitHub | atom992 | 1 year ago
  1. 0

    GitHub comment 51#132431048

    GitHub | 1 year ago | atom992
    java.lang.NullPointerException: Attempt to invoke interface method 'android.view.MenuItem android.view.MenuItem.setTitle(int)' on a null object reference
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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 'android.view.MenuItem android.view.MenuItem.setTitle(int)' on a null object reference

      at com.google.zxing.client.android.encode.EncodeActivity.onCreateOptionsMenu()
    2. com.google.zxing
      EncodeActivity.onCreateOptionsMenu
      1. com.google.zxing.client.android.encode.EncodeActivity.onCreateOptionsMenu(EncodeActivity.java:89)
      1 frame
    3. Android Platform
      Activity.onCreatePanelMenu
      1. android.app.Activity.onCreatePanelMenu(Activity.java:2820)
      1 frame
    4. Android
      PhoneWindow$1.run
      1. com.android.internal.policy.impl.PhoneWindow.preparePanel(PhoneWindow.java:548)
      2. com.android.internal.policy.impl.PhoneWindow.doInvalidatePanelMenu(PhoneWindow.java:917)
      3. com.android.internal.policy.impl.PhoneWindow$1.run(PhoneWindow.java:258)
      3 frames
    5. Android Platform
      ActivityThread.main
      1. android.os.Handler.handleCallback(Handler.java:739)
      2. android.os.Handler.dispatchMessage(Handler.java:95)
      3. android.os.Looper.loop(Looper.java:135)
      4. android.app.ActivityThread.main(ActivityThread.java:5221)
      4 frames
    6. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    7. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
      2 frames