mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
Issue 851 NPE for invalid network type
git-svn-id: https://zxing.googlecode.com/svn/trunk@1804 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
e9d5024e46
commit
9b176a1a5f
|
@ -216,10 +216,9 @@ public final class WifiActivity extends Activity {
|
||||||
} else if ("WEP".equals(networkType)) {
|
} else if ("WEP".equals(networkType)) {
|
||||||
networkT = NetworkType.NETWORK_WEP;
|
networkT = NetworkType.NETWORK_WEP;
|
||||||
} else if ("nopass".equals(networkType)) {
|
} else if ("nopass".equals(networkType)) {
|
||||||
networkT = NetworkType.NETWORK_NOPASS;
|
networkT = NetworkType.NETWORK_NOPASS;
|
||||||
} else {
|
} else {
|
||||||
doError(R.string.wifi_type_incorrect);
|
networkT = NetworkType.NETWORK_INVALID;
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// This is not available before onCreate
|
// This is not available before onCreate
|
||||||
|
|
Loading…
Reference in a new issue