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

[ISSUE] Error fetching network interface list: NPE #1373

Open
TotallyAvailable opened this issue Jan 20, 2024 · 0 comments
Open

[ISSUE] Error fetching network interface list: NPE #1373

TotallyAvailable opened this issue Jan 20, 2024 · 0 comments
Labels

Comments

@TotallyAvailable
Copy link

TotallyAvailable commented Jan 20, 2024

Describe the bug
After a regular Reboot the device came back as usual, connected fine... except the nearly completely broken Network connection.
Nothing network related has been touched in months. No System Update since the last successful reboot.

The previous wall of text disappeared just like the long list of issues it used to describe.

Firewall Logs

22:30:11 Network change captured.
22:30:11 Error fetching network interface list: java.lang.NullPointerException: Attempt to invoke interface method 'boolean java.util.Enumeration.hasMoreElements()' on a null object reference
	at dev.ukanth.ufirewall.InterfaceTracker$NewInterfaceScanner.populateLanMasks(InterfaceTracker.java:352)
	at dev.ukanth.ufirewall.InterfaceTracker.getInterfaceDetails(InterfaceTracker.java:176)
	at dev.ukanth.ufirewall.InterfaceTracker.checkForNewCfg(InterfaceTracker.java:181)
	at dev.ukanth.ufirewall.InterfaceTracker.applyRulesOnChange(InterfaceTracker.java:233)
	at dev.ukanth.ufirewall.broadcast.ConnectivityChangeReceiver.onReceive(ConnectivityChangeReceiver.java:64)
	at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0$android-app-LoadedApk$ReceiverDispatcher$Args(LoadedApk.java:1790)
	at android.app.LoadedApk$ReceiverDispatcher$Args$$ExternalSyntheticLambda0.run(Unknown Source:2)
	at android.os.Handler.handleCallback(Handler.java:942)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loopOnce(Looper.java:201)
	at android.os.Looper.loop(Looper.java:288)
	at android.app.ActivityThread.main(ActivityThread.java:7936)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:854)

22:30:11 Getting interface details...
22:30:11 Now assuming 3G connection (roaming: nowifi-tethered: no, bluetooth-tethered: no, usb-tethered: no)
22:30:11 No ipaddress found
22:30:11 CONNECTIVITY_CHANGE applying rules
22:30:11 Selected Profile: AFWallPrefs
22:30:11 Using full Apply
22:30:11 Using applySavedIptablesRules
22:30:11 Constructing rules for v6
22:30:11 Constructing rules for v4
22:30:11 Forcing configuration: true
22:30:11 Forcing configuration: false
22:30:11 no ipv6 found: true,
22:30:11 No ipaddress found for LAN
22:30:11 Error fetching network interface list: java.lang.NullPointerException: Attempt to invoke interface method 'boolean java.util.Enumeration.hasMoreElements()' on a null object reference
	at dev.ukanth.ufirewall.InterfaceTracker$NewInterfaceScanner.populateLanMasks(InterfaceTracker.java:352)
	at dev.ukanth.ufirewall.InterfaceTracker.getInterfaceDetails(InterfaceTracker.java:176)
	at dev.ukanth.ufirewall.InterfaceTracker.getCurrentCfg(InterfaceTracker.java:226)
	at dev.ukanth.ufirewall.Api.addInterfaceRouting(Api.java:559)
	at dev.ukanth.ufirewall.Api.applyIptablesRulesImpl(Api.java:720)
	at dev.ukanth.ufirewall.Api.lambda$applySavedIptablesRules$2(Api.java:911)
	at dev.ukanth.ufirewall.Api$$ExternalSyntheticLambda9.run(Unknown Source:10)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:463)
	at java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
	at java.lang.Thread.run(Thread.java:1012)

22:30:11 no ipv4 found:true,

Additional context

(Guess in the meantime I'll have to find where the actual offending interface config is stored and how to get rid of it without breaking the last bit of functionality.)

Also please the option to hide disabled Apps as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant