[2020-07-09 17:52:22:293] [SEVERE ] [ in_5-c2s ] AbstractMessageReceiver$QueueListener.run(): [in_5-c2s] Exception during packet processing: from=sess-man@9585556aacac, to=c2s@9585556aacac/127.0.0.1_5222_127.0.0.1_34102, DATA=<presence to="admin@localhost" xmlns="jabber:client" from="admin@localhost/2095755800-tigase-1"><c node="http://tigase.org/jaxmpp" hash="sha-1" xmlns="http://jabber.org/protocol/caps" ver="mg5bXbOeu1848vxdgu3jELgbQF8="/></presence>, SIZE=231, XMLNS=jabber:client, PRIORITY=PRESENCE, PERMISSION=ADMIN, TYPE=null java.lang.NullPointerException at tigase.server.xmppclient.StreamManagementIOProcessor.processOutgoing(StreamManagementIOProcessor.java:243) at tigase.xmpp.XMPPIOService.addPacketToSend(XMPPIOService.java:125) at tigase.server.ConnectionManager.writePacketToSocket(ConnectionManager.java:592) at tigase.server.ConnectionManager.writePacketToSocket(ConnectionManager.java:861) at tigase.server.xmppclient.ClientConnectionManager.processPacket(ClientConnectionManager.java:131) at tigase.server.AbstractMessageReceiver$QueueListener.run(AbstractMessageReceiver.java:1405)
Fixed NPE by sending error back, as in this case waiting packets would already send errors before.