AnsweredAssumed Answered

OTR Message Throws Error

Question asked by Niu Changming on Mar 31, 2016
Latest reply on Apr 1, 2016 by wroot

When I receive OTR message, the connection automatically closed and throw NullPointerError at org.jivesoftware.smack.util.LazyStringBuilder.length.

 

java.lang.NullPointerException

03-31 09:15:53.637 3588-5329/com.use.databank W/System.err:     at org.jivesoftware.smack.util.LazyStringBuilder.length(LazyStringBuilder.java:72)

03-31 09:15:53.637 3588-5329/com.use.databank W/System.err:     at org.jivesoftware.smack.util.XmlStringBuilder.length(XmlStringBuilder.java:329)

03-31 09:15:53.637 3588-5329/com.use.databank W/System.err:     at org.jivesoftware.smack.util.LazyStringBuilder.length(LazyStringBuilder.java:72)

03-31 09:15:53.638 3588-5329/com.use.databank W/System.err:     at org.jivesoftware.smack.util.LazyStringBuilder.toString(LazyStringBuilder.java:1 00)

03-31 09:15:53.638 3588-5329/com.use.databank W/System.err:     at org.jivesoftware.smack.util.XmlStringBuilder.toString(XmlStringBuilder.java:344 )

03-31 09:15:53.638 3588-5329/com.use.databank W/System.err:     at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketWriter.writePackets(XMPPTCPC onnection.java:1378)

03-31 09:15:53.638 3588-5329/com.use.databank W/System.err:     at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketWriter.access$2900(XMPPTCPCo nnection.java:1180)

03-31 09:15:53.638 3588-5329/com.use.databank W/System.err:     at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketWriter$1.run(XMPPTCPConnecti on.java:1228)

03-31 09:15:53.638 3588-5329/com.use.databank W/System.err:     at java.lang.Thread.run(Thread.java:838)

Outcomes