I am connecting my photons to a hidden network with no password. When using the Android Device Setup library, I have to use the option for entering the network name mannually. This cause the app to crush due to an unhandled NullPointerException. Taking a look at the code, it seems that the app still tries to encrypt and encode an unexisting password with the following function Crypto.encryptAndEncodeToHex(networkSecretPlaintext, publicKey));
It seems that the checkbox used to tell if the network has password isnt properly read, because although having it unchecked, it will enter the conditional if (wifiSecurity != WifiSecurity.OPEN).
Steps to reproduce
- Configure a hidden wifi network with no password
- Try to setup the photon from the android setup library
- When selecting the wifi network, hit MANUAL NETWORK NAME
- Introduce wifi network name and uncheck “Network requires password” checkbox
- hit CONNECT.
The app will crush at this point