Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on await WiFiForIoTPlugin.getSSID() on Android #225

Closed
kvedala opened this issue Jan 13, 2022 · 4 comments
Closed

Crash on await WiFiForIoTPlugin.getSSID() on Android #225

kvedala opened this issue Jan 13, 2022 · 4 comments

Comments

@kvedala
Copy link

kvedala commented Jan 13, 2022

Until and including v0.3.12, the command await WiFiForIoTPlugin.getSSID() returned the expected response. However, with the new version v0.3.13, the following exception report is thrown and the application crashes.

E/AndroidRuntime( 2331): java.lang.NullPointerException
E/AndroidRuntime( 2331): 	at com.android.wifi.x.com.android.internal.util.Preconditions.checkNotNull(Preconditions.java:137)
E/AndroidRuntime( 2331): 	at android.net.wifi.WifiNetworkSpecifier$Builder.setSsid(WifiNetworkSpecifier.java:135)
E/AndroidRuntime( 2331): 	at com.alternadom.wifiiot.WifiIotPlugin.connectTo(WifiIotPlugin.java:1250)
E/AndroidRuntime( 2331): 	at com.alternadom.wifiiot.WifiIotPlugin.access$200(WifiIotPlugin.java:50)
E/AndroidRuntime( 2331): 	at com.alternadom.wifiiot.WifiIotPlugin$7.run(WifiIotPlugin.java:955)
@daadu
Copy link
Member

daadu commented Jan 14, 2022

@kvedala The logs you posted, does not indicate any issue with getSSID, but there could be issue with connect method. Do you use it too?

@daadu
Copy link
Member

daadu commented Jan 14, 2022

Looks like you are passing nul in ssid argument of your connect/findAndConnect/registerWifi method.

@daadu
Copy link
Member

daadu commented Jan 15, 2022

@kvedala I am unable to reproduce the bug, did you find anything?

@daadu
Copy link
Member

daadu commented May 16, 2022

Closing this because of lack of response.

Feel free to request re-opening.

@daadu daadu closed this as completed May 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants