mirror of
https://github.com/zxing/zxing.git
synced 2025-01-12 19:57:27 -08:00
Avoid NPE for camera with no params
git-svn-id: https://zxing.googlecode.com/svn/trunk@2995 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
9a5391b653
commit
fe555e001b
|
@ -307,10 +307,12 @@ public final class ZXingTestActivity extends Activity {
|
|||
result.append("VERSION.SDK_INT=").append(Build.VERSION.SDK_INT).append('\n');
|
||||
|
||||
CharSequence flattened = getFlattenedParams();
|
||||
String[] params = SEMICOLON.split(flattened);
|
||||
Arrays.sort(params);
|
||||
for (String param : params) {
|
||||
result.append(param).append('\n');
|
||||
if (flattened != null) {
|
||||
String[] params = SEMICOLON.split(flattened);
|
||||
Arrays.sort(params);
|
||||
for (String param : params) {
|
||||
result.append(param).append('\n');
|
||||
}
|
||||
}
|
||||
|
||||
String resultString = result.toString();
|
||||
|
|
Loading…
Reference in a new issue