Closed micheleb closed 1 year ago
Hi @micheleb ,
thanks for the commit, I would appreciate a PR for this, can you make it? Therefore I would merge it quickly
Hey @loicortola, thanks for replying so quickly :)
I created a PR with my workaround, it's not much, but at least it prevents the NPE.
Merged and released, let me know if everything works as expected!
thanks! I released the fix in the wild, will report back next week on how it's going 🤞🏻
Hey @loicortola, just dropped by to confirm that we're no longer seeing the NPE crashes 👌🏻 Cheers!
Thanks @micheleb
Hi! 👋🏻 We've seen some crashes in our app (we're using this library on Android) due to this error:
It looks like
handlePresenceAnnouncement
is sometimes called beforereset()
is invoked, thus incurring in the NPE above.I've added this small workaround to avoid getting NPEs, but of course it doesn't actually solve the problem (maybe these announcements could be saved to a temporary list waiting for a scan request to come?).