Closed Svechnikov closed 4 years ago
Consider this situation:
MvpPresenter.Binder.bind
ViewStateLocator.getViewState
Class.forName
viewState.showMessage()
I propose not to silently consume exception.
Consider this situation:
MvpPresenter.Binder.bind
callsViewStateLocator.getViewState
ViewStateLocator.getViewState
a call toClass.forName
for some reason raises an exceptionViewStateLocator.getViewState
silently consumes this exception and returns nullviewState.showMessage()
in presenter. The reason for NPE is unclear and difficult to debug.I propose not to silently consume exception.