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:
srowen 2011-05-30 19:19:03 +00:00
parent e9d5024e46
commit 9b176a1a5f

View file

@ -218,8 +218,7 @@ public final class WifiActivity extends Activity {
} else if ("nopass".equals(networkType)) {
networkT = NetworkType.NETWORK_NOPASS;
} else {
doError(R.string.wifi_type_incorrect);
return;
networkT = NetworkType.NETWORK_INVALID;
}
// This is not available before onCreate