NullPointerException when Epoxy model is bind to data class
See original GitHub issueI have noticed that epoxy throws this exception when the model use the data class with kotlin 1.5.10 and 1.5.0
java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.hashCode()' on a null object reference
at org.zxconnect.android.daylivro.models.entity.Product.hashCode(Unknown Source:19)
at org.zxconnect.android.delivro.ProductBindingModel_.hashCode(ProductBindingModel_.java:330)
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Unable to use with DataBindings and AndroidX when not ...
Hi I tried it with a simple DataBinding as a Model but building gives me: e: error: Epoxy Processor Exception: Caused by TypeCastException: ......
Read more >Using the Epoxy ModelView causes Inflate errors and ...
I'm using the @ModelView annotation from the Epoxy library to create a CustomView . I'm making it with reference to another example, but...
Read more >Fixing NullPointerException when trying to bind RatingBar ...
In the generated code something like this happens. ratingBarView.setRating(rating); //rating == null :( Fixing it. Fortunately with Data Binding ...
Read more >How do I properly initialize a property in Epoxy ModelView ...
i.e "you can't have data provided both by saved state and by a model prop since they ... @ModelView(saveViewState = true) class RowView:...
Read more >error: cannot generate view binders java.lang ... - Issue Tracker
If you run with --debug, data binding will print debug logs. ... Task] i: Note: checking method api for setOnClickListener, class:java/lang/Object ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes, it is the exception that is triggered, but if I remove when I remove the keyword data, there is no more exception
In my model there is no property with null as default value, The application does not trigger the exception if I use Kotlin version 1.4.30
@zhambylgaziz i guess you must initialize your data class variable as nullable like me.