powered by Jive Software

Crash: XmlSplitter.java line 338 org.jxmpp.xml.splitter.XmlSplitter.processChar

This crash is reported on crashlytic on release build and Iam unable to reproduce and find the root cause.
could you please help me out to resolve this?

Smack 4.4.2
crash appear on android 7.1.1, nexus

Fatal Exception: java.lang.AssertionError: java.io.IOException
       at org.jivesoftware.smack.debugger.SmackDebugger.lambda$newConnectionWriter$3(SmackDebugger.java:126)
       at org.jivesoftware.smack.debugger.SmackDebugger.lambda$newConnectionWriter$3$SmackDebugger(SmackDebugger.java)
       at org.jivesoftware.smack.debugger.-$$Lambda$SmackDebugger$KVoy1qB12eCeC_0m5iZxmuqlyiU.write(-.java)
       at org.jivesoftware.smack.util.ObservableWriter.notifyListeners(ObservableWriter.java:103)
       at org.jivesoftware.smack.util.ObservableWriter.flush(ObservableWriter.java:50)
       at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketWriter.writePackets(XMPPTCPConnection.java:1364)
       at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketWriter.access$4200(XMPPTCPConnection.java:1169)
       at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketWriter$1.run(XMPPTCPConnection.java:1219)
       at java.lang.Thread.run(Thread.java:761)
Caused by java.io.IOException
       at org.jxmpp.xml.splitter.XmlSplitter.processChar(XmlSplitter.java:338)
       at org.jxmpp.xml.splitter.XmlSplitter.write(XmlSplitter.java:155)
       at java.io.Writer.write(Writer.java:192)
       at java.io.Writer.write(Writer.java:157)
       at java.io.Writer.append(Writer.java:227)
       at org.jivesoftware.smack.debugger.SmackDebugger.lambda$newConnectionWriter$3(SmackDebugger.java:123)
       at org.jivesoftware.smack.debugger.SmackDebugger.lambda$newConnectionWriter$3$SmackDebugger(SmackDebugger.java)
       at org.jivesoftware.smack.debugger.-$$Lambda$SmackDebugger$KVoy1qB12eCeC_0m5iZxmuqlyiU.write(-.java)
       at org.jivesoftware.smack.util.ObservableWriter.notifyListeners(ObservableWriter.java:103)
       at org.jivesoftware.smack.util.ObservableWriter.flush(ObservableWriter.java:50)
       at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketWriter.writePackets(XMPPTCPConnection.java:1364)
       at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketWriter.access$4200(XMPPTCPConnection.java:1169)
       at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketWriter$1.run(XMPPTCPConnection.java:1219)
       at java.lang.Thread.run(Thread.java:761)

This happens if an empty element tag is received, that does not have > following the /. For example <invalid-xml/foo>.