1.16-alpha0 (and 1.15.4) - crash on sync while in background on network switch

  • Device OS and version: AOSP 11
  • F-Droid version (in the About screen): 1.16-alpha0-6 / 1.15.4
  • F-Droid privileged extension version (if installed): yes but not used

What did you do? (clear steps if possible)

Nothing related to F-Droid, I was not using the clients, but I usually see this when I step from mobile data into an Wi-Fi area so the network switches

What did you expect to see?

Nothing or a notification that there's an index sync done in background

What did you see instead?

Scoop popped up with 2 notification, 2 apps crashed, both 1.15.4 and Nighly

Same stack for both (last 2 lines say :68 and :172 for Nighly but the rest is the same)

java.lang.NullPointerException: Attempt to get length of null array
	at java.net.NetworkInterface.getAll(NetworkInterface.java:440)
	at java.net.NetworkInterface.getNetworkInterfaces(NetworkInterface.java:398)
	at org.fdroid.fdroid.nearby.WifiStateChangeService.setIpInfoFromNetworkInterface(WifiStateChangeService.java:310)
	at org.fdroid.fdroid.nearby.WifiStateChangeService.access$200(WifiStateChangeService.java:67)
	at org.fdroid.fdroid.nearby.WifiStateChangeService$WifiInfoThread.run(WifiStateChangeService.java:171)
Edited by Licaon_Kter