Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DotsIndicator 5.0 causes NullPointerException on SingleLiveData, but 4.3 works fine! #182

Open
SantosVithor opened this issue Aug 17, 2023 · 0 comments

Comments

@SantosVithor
Copy link

My project has this SingleLiveData implementation: LiveData with Single Events and, for some reason, the version 5.0 causes a NullPointerException.

More specificly: Attempt to invoke virtual method 'boolean java.lang.Boolean.booleanValue()' on a null object reference
(I often use SingleLiveData as a Boolean type, but in some places they are of type Any, and it also causes the NullPointerException)

It's also valid to add that my project uses Kotlin, but no compose at all (therefore, I'm using xml for views).

  • Kotlin: 1.8.0
  • Gradle: 8.1

I've tried different versions and solutions for this and here are my tests:

  • version 4.2 also works fine
  • Adding compose to the project made it worse: no version solved the issue

PS: by "adding compose", I've considered this Compose Setup and
Compose-Kotlin Releases

Another valid observation is that I've faced a lot of compatibility issues while trying to use this lib. At first, I was forced to update my Kotlin version to 1.8.0 and I faced some issues regarding Unit tests with Roboeletric because of that.
After solving them, I migrated my Gradle Build Scripts to Kotlin DSL and then, upgraded my gradle from 7.5 to 8.1.

I made those changes because the project was needing it, not because of the problems I faced here. Nevertheless, I found a way through this madhouse and manage to work with this library (amazing btw).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant