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

Enumeration.hasMoreElements() 会java.lang.NullPointerException #1825

Open
AndroidBody opened this issue Dec 10, 2024 · 0 comments
Open

Enumeration.hasMoreElements() 会java.lang.NullPointerException #1825

AndroidBody opened this issue Dec 10, 2024 · 0 comments
Assignees
Labels

Comments

@AndroidBody
Copy link

使用版本:implementation 'com.blankj:utilcodex:1.30.6'
测试机型:HUAWEI HWVKY (P10 Plus) Android 9 (SDK 28)
错误日志:
Exception java.lang.NullPointerException: Attempt to invoke interface method 'boolean java.util.Enumeration.hasMoreElements()' on a null object reference
at com.blankj.utilcode.util.NetworkUtils.getBroadcastIpAddress (NetworkUtils.java:562)
at com.it.inlumentech.ui.socket.UdpUtils$2.onTick (UdpUtils.java:271)
at android.os.CountDownTimer$1.handleMessage (CountDownTimer.java:130)
at android.os.Handler.dispatchMessage (Handler.java:112)
at android.os.Looper.loop (Looper.java:216)
at android.app.ActivityThread.main (ActivityThread.java:7625)
at java.lang.reflect.Method.invoke
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:524)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:987)

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

2 participants