parley-messaging / android-library

Parley Android app library
MIT License
3 stars 3 forks source link

Fix: crash while calling disableCaching() #6

Closed Rolf-Smit closed 2 years ago

Rolf-Smit commented 2 years ago

In certain cases when you call Parley.disableOfflineMessaging() this method will throw a NullPointerException. Reason for this is that internally MessagesManager.disableCaching() is called and that the MessagesManager.dataSource can already be null and causes it to thrown a NullPointerException.

alexkok commented 2 years ago

Thanks @Rolf-Smit ! Turns out dataSource is indeed nullable 👍

alexkok commented 2 years ago

Released in version 3.4.2 🚀