mirror of
https://github.com/zxing/zxing.git
synced 2024-11-09 20:44:03 -08:00
Avoid book search crash on invalid intent (#1114)
This commit is contained in:
parent
22b8a0a983
commit
1765887315
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue