java.lang.NullPointerException: Attempt to get length of null array

Stack Overflow | Rahul Matte | 8 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 reconnect to the openfire server after disconnecting?

    Stack Overflow | 8 months ago | Rahul Matte
    java.lang.NullPointerException: Attempt to get length of null array

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to get length of null array

      at org.jivesoftware.smack.util.stringencoder.Base64.encode()
    2. org.jivesoftware.smack
      SCRAMSHA1Mechanism.evaluateChallenge
      1. org.jivesoftware.smack.util.stringencoder.Base64.encode(Base64.java:61)
      2. org.jivesoftware.smack.util.stringencoder.Base64.encodeToString(Base64.java:43)
      3. org.jivesoftware.smack.sasl.core.SCRAMSHA1Mechanism.evaluateChallenge(SCRAMSHA1Mechanism.java:201)
      3 frames
    3. Smack
      SASLAuthentication.authenticated
      1. org.jivesoftware.smack.sasl.SASLMechanism.challengeReceived(SASLMechanism.java:224)
      2. org.jivesoftware.smack.SASLAuthentication.challengeReceived(SASLAuthentication.java:328)
      3. org.jivesoftware.smack.SASLAuthentication.authenticated(SASLAuthentication.java:347)
      3 frames
    4. org.jivesoftware.smack
      XMPPTCPConnection$PacketReader$1.run
      1. org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPConnection.java:1069)
      2. org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.access$200(XMPPTCPConnection.java:931)
      3. org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader$1.run(XMPPTCPConnection.java:951)
      3 frames