Avoid book search crash on invalid intent (#1114)

This commit is contained in:
John Hall 2018-12-05 13:05:12 -06:00 committed by Sean Owen
parent 22b8a0a983
commit 1765887315

View file

@ -97,6 +97,11 @@ public final class SearchBookContentsActivity extends Activity {
}
isbn = intent.getStringExtra(Intents.SearchBookContents.ISBN);
if (isbn == null) {
finish();
return;
}
if (LocaleManager.isBookSearchUrl(isbn)) {
setTitle(getString(R.string.sbc_name));
} else {