mirror of
https://github.com/zxing/zxing.git
synced 2025-02-02 05:41:08 -08:00
Being paranoid -- what if model string is null?
git-svn-id: https://zxing.googlecode.com/svn/trunk@1227 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
508697a318
commit
1a12e1d03e
|
@ -93,6 +93,7 @@ public final class HelpActivity extends Activity {
|
|||
private void checkBuggyDevice() {
|
||||
String model = Build.MODEL;
|
||||
Log.i(TAG, "Build model is " + model);
|
||||
if (model != null) {
|
||||
for (String buggyModelSubstring : BUGGY_MODEL_SUBSTRINGS) {
|
||||
if (model.contains(buggyModelSubstring)) {
|
||||
AlertDialog.Builder builder = new AlertDialog.Builder(this);
|
||||
|
@ -104,6 +105,7 @@ public final class HelpActivity extends Activity {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onSaveInstanceState(Bundle state) {
|
||||
|
|
Loading…
Reference in a new issue