-
Notifications
You must be signed in to change notification settings - Fork 207
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
Crash with NPE in AddToEndSingleStrategy.java line 25 #219
Comments
И еще такие крэши AddToEndSingleStrategy.java line 31 Fatal Exception: java.lang.ArrayIndexOutOfBoundsException: length=15; index=15 |
@tridetch Can you provide View interface (Maybe you can create gist page), without implementation ) |
@tridetch Do you have some problems with the version |
@jordan1997 Yes, im update moxy to version 1.5.5 but unfortunately it did not help |
@tridetch I created following project based on your interface And I cannot reproduce the bug. I added a test into that project which rotates the device 500 times, and nothing happens. I think it happens because of some of the view detach, by Set doesn't update immediately. For my opinion problem in the following lines:
Maybe, we need to use volatile for following fields. @senneco What do you think about this? @tridetch Maybe, you can make some changes in my sample project, for reproducing your issue. |
I have same issue. At some point, i have a lot of updates using one of view methods with AddToEndSingleStrategy. No rotations or any other view detaches on that point, but still crash. |
Есть большая вью с примерно 80 методами в какой то момент в крэшлитике стал приходить такой крэш и появляется все чаще и чаще
AddToEndSingleStrategy.java line 25
com.arellomobile.mvp.viewstate.strategy.AddToEndSingleStrategy.beforeApply
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference
at com.arellomobile.mvp.viewstate.strategy.AddToEndSingleStrategy.beforeApply(AddToEndSingleStrategy.java:25)
at com.arellomobile.mvp.viewstate.ViewCommands.beforeApply(ViewCommands.java:27)
at online.cartrek.app.presentation.view.MapView$$State.updateAbonentTime(MapView$$State.java:1217)
at online.cartrek.app.presentation.presenter.MapPresenter$4.run(MapPresenter.java:294)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
Moxy version 1.5.3
The text was updated successfully, but these errors were encountered: