powered by Jive Software

Smack omemo 4.2.1-beta2-SNAPSHOT throws Exception on receiving offline messages from server


#1

OmemoService#getSender() throws exception on receiving offline messages sent from the xmpp server as shown in the log blow.

see also https://community.igniterealtime.org/message/265296#comment-265296

============ aTalk omemo offline message Exception log ================

07-21 12:20:57.025 D/SMACK: RECV (0): MwgMEiEFhZCIcePfLlJRNYy+o9vEdckqN/XfWpq51eP5UQHz4GQaIQUUV5ApOiQnN cECsTvKWCH8wDMrQe4XtFTcxf88Tg61YSJiMwohBRkTFwRc88k+9cDwCt6Igt/5+SwLSgzV/7wuuabv5 Ig3EDgYACIwgO9rJv7paA6oyLqXzHk5I6HityO5Xq+v08Hdv6GH4H2Dmoy0NfoV7fr1RqMTkAznmzIRu SCe78AomZyyhQMwAQ==MwohBRwVFKQz0B0+HtzipePtt2ksl17zmUxZ1IfIh21MoaBnECUYAiIw6RxdGq aFdhZreEUSs35zaLObLodfXEJp2DY8m1mtE2KNFJ5KwtHg/j12ysd6HsCUFYgQSCcM+uI=MwohBdBKtj+VX6A9Xs9a+620WHFzceU0efEYDcJZLxYuTmI2EAIYAiIwaSNhzl TmHWtyRLlEhKx/cYgwESq7TVoqWgbrhs3YTs3JDTScAyp4Vy8nXpMlfSCpefKdV08ccoE= +qb+UvsbRN4IMYB8qILTqQ==WMY=<origin -id xmlns=‘urn:xmpp:sid:0’ id=‘08457e09-4408-42b0-9238-4a5f3ff16e6f’/>I sent you an OMEMO encrypted message but your client doesn’t seem to support that. Find more information on https://conversations.im/omemo

07-21 12:20:57.025 E/αTalk: [32] org.jivesoftware.smack.AbstractXMPPConnection.run() Exception in async packet listener

java.lang.NullPointerException: Attempt to invoke virtual method ‘org.jxmpp.jid.Jid org.jivesoftware.smackx.muc.Occupant.getJid()’ on a null object reference

at org.jivesoftware.smackx.omemo.OmemoService.getSender(OmemoService.java:1185)

at org.jivesoftware.smackx.omemo.OmemoService.access$000(OmemoService.java:107)

at org.jivesoftware.smackx.omemo.OmemoService$OmemoStanzaListener.processStanza(Om emoService.java:1230)

at org.jivesoftware.smack.AbstractXMPPConnection$4.run(AbstractXMPPConnection.java :1198)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)

at java.lang.Thread.run(Thread.java:818)

07-21 12:20:57.025 D/SMACK: RECV (0): MwgMEiEFhZCIcePfLlJRNYy+o9vEdckqN/XfWpq51eP5UQHz4GQaIQUUV5ApOiQnN cECsTvKWCH8wDMrQe4

07-21 12:20:57.025 D/SMACK: RECV (0): XtFTcxf88Tg61YSJiMwohBRkTFwRc88k+9cDwCt6Igt/5+SwLSgzV/7wuuabv5Ig3EDkYACIw2nC1ZB a/21udFZWOxY5I/XkOU8ArgujNqj2pN8Z/UT92ehuE3wQ/FqN/+bzPGdwp2Bul/SiIz8womZyyhQMwAQ ==MwohBRwVFKQz0B0+HtzipePtt2ksl17zmUxZ1IfIh21MoaBnECYYAiIwzkicoY QTRX06yvgdG6mGifa0oYkQToFzogKVm0LuVdlcBP5T/YEUpYqASMmLhrrNjFXOrDxea40=MwohBdBKtj+VX6A9Xs9a+620WHFzceU0efEYDcJZLxYuTmI2EAMYAiIwmHs8YZ 6pBQkqZjNzD0Y6CO7Uc7RJd6/JzEF1rlVZDxFoCQIReSCP+cCkY6LcAfsXlQgA/J9JQaY= VcyB8HqHbra+fD897FFWog==4O/CMA==I sent you an OMEMO encrypted message but your client doesn’t seem to support that. Find more information on https://conversations.im/omemo

07-21 12:20:57.025 D/SMACK: RECV (0): MwgMEiEFhZCIcePfLlJRNYy+o9vEdckqN/XfWpq51eP5UQHz4GQaIQUUV5ApOiQnN cECsTvKWCH8wDMrQe4XtFTcxf88Tg61YSJiMwohBRkTFwRc88k+9cDwCt6Igt/5+SwLSgzV/7wuuabv5 Ig3EDoYACIwXlgOQBIimcz1rdpcjGcJPaS2dSQh9EiJS6YOK8EiCAmo1Vge00MsaMYYzaVUlIvF9QZY2 2cIfNwomZyyhQMwAQ==MwohBRwVFKQz0B0+HtzipePtt2ksl17zmUxZ1IfIh21MoaBnECcYAiIwGYlRJ5 SMz8ET+cZVrC/C7ghqD14xwehgguoytFM4qECBmI6hxdA8QkhzASp2exqHja6sMr6E9R8= 4oYjlC70ZyT2ZSIzVL2BKA==c/J/SQ==I sent you an OMEMO encrypted message but your client doesn’t seem to support that. Find more information on https://conversations.im/omemo

07-21 12:20:57.025 E/αTalk: [30] org.jivesoftware.smack.AbstractXMPPConnection.run() Exception in async packet listener

java.lang.NullPointerException: Attempt to invoke virtual method ‘org.jxmpp.jid.Jid org.jivesoftware.smackx.muc.Occupant.getJid()’ on a null object reference

at org.jivesoftware.smackx.omemo.OmemoService.getSender(OmemoService.java:1185)

at org.jivesoftware.smackx.omemo.OmemoService.access$000(OmemoService.java:107)

at org.jivesoftware.smackx.omemo.OmemoService$OmemoStanzaListener.processStanza(Om emoService.java:1230)

at org.jivesoftware.smack.AbstractXMPPConnection$4.run(AbstractXMPPConnection.java :1198)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)

at java.lang.Thread.run(Thread.java:818)

07-21 12:20:57.025 E/αTalk: [33] org.jivesoftware.smack.AbstractXMPPConnection.run() Exception in async packet listener

java.lang.NullPointerException: Attempt to invoke virtual method ‘org.jxmpp.jid.Jid org.jivesoftware.smackx.muc.Occupant.getJid()’ on a null object reference

at org.jivesoftware.smackx.omemo.OmemoService.getSender(OmemoService.java:1185)

at org.jivesoftware.smackx.omemo.OmemoService.access$000(OmemoService.java:107)

at org.jivesoftware.smackx.omemo.OmemoService$OmemoStanzaListener.processStanza(Om emoService.java:1230)

at org.jivesoftware.smack.AbstractXMPPConnection$4.run(AbstractXMPPConnection.java :1198)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)

at java.lang.Thread.run(Thread.java:818)