java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.indexOf(int)' on a null object reference

Stack Overflow | Anil | 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

    Xmpp String utils crashes the app frequently

    Stack Overflow | 7 months ago | Anil
    java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.indexOf(int)' on a null object reference
  2. 0

    GitHub comment 166#221790099

    GitHub | 11 months ago | Hemant0601
    java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.indexOf(int)' on a null object reference
  3. 0

    GitHub comment 166#261860542

    GitHub | 5 months ago | Hemant0601
    java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.indexOf(int)' on a null object reference
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Crash from XMPP

    GitHub | 1 year ago | Hemant0601
    java.lang.NullPointerException
  6. 0

    Getting a nullpointer exception when switching displayables in J2ME

    Stack Overflow | 6 years ago | Pallinder
    java.lang.NullPointerException: 0 at javax.microedition.lcdui.Display$ChameleonTunnel.callScreenListener(), bci=46 at com.sun.midp.chameleon.layers.SoftButtonLayer.processCommand(), bci=74 at com.sun.midp.chameleon.layers.SoftButtonLayer.soft1(), bci=37 at com.sun.midp.chameleon.layers.SoftButtonLayer.keyInput(), bci=36 at com.sun.midp.chameleon.CWindow.keyInput(), bci=38 at javax.microedition.lcdui.Display$DisplayEventConsumerImpl.handleKeyEvent(), bci=17 at com.sun.midp.lcdui.DisplayEventListener.process(), bci=277 at com.sun.midp.events.EventQueue.run(), bci=179

    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 'int java.lang.String.indexOf(int)' on a null object reference

      at org.jxmpp.util.XmppStringUtils.parseBareJid()
    2. org.jxmpp.util
      XmppStringUtils.parseBareJid
      1. org.jxmpp.util.XmppStringUtils.parseBareJid(XmppStringUtils.java:117)
      1 frame
    3. org.jivesoftware.smack
      Roster$RosterPushListener.handleIQRequest
      1. org.jivesoftware.smack.roster.Roster$RosterPushListener.handleIQRequest(Roster.java:1386)
      1 frame
    4. Smack
      AbstractXMPPConnection$2.run
      1. org.jivesoftware.smack.AbstractXMPPConnection$2.run(AbstractXMPPConnection.java:1051)
      1 frame
    5. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
      3. java.lang.Thread.run(Thread.java:761)
      3 frames