mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 18:56:44 -04:00
Added guard code as sometimes the error message is null.
This commit is contained in:
parent
e28a04542f
commit
5a7bcfbc98
@ -34,7 +34,8 @@ public class LibraryPresenter extends BasePresenter<LibraryViewCallback> {
|
|||||||
.subscribe(library -> {
|
.subscribe(library -> {
|
||||||
getMvpView().showBooks(library.getBooks());
|
getMvpView().showBooks(library.getBooks());
|
||||||
}, error -> {
|
}, error -> {
|
||||||
Log.w("kiwixLibrary", error.getLocalizedMessage());
|
String msg = error.getLocalizedMessage();
|
||||||
|
Log.w("kiwixLibrary", "Error:" + (msg != null ? msg : "(null)"));
|
||||||
getMvpView().displayNoNetworkConnection();
|
getMvpView().displayNoNetworkConnection();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user