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

NPE crash at AppStateCollector.java line 221 in siftscience.android.AppStateCollector.getIpAddresses() #95

Open
lixw1021 opened this issue Apr 5, 2022 · 2 comments

Comments

@lixw1021
Copy link

lixw1021 commented Apr 5, 2022

Hey team,
the app crashed at

LOCATION
AppStateCollector.java line 221 in siftscience.android.AppStateCollector.getIpAddresses()
EXCEPTION
java.lang.NullPointerException
MESSAGE
Attempt to read from field 'java.util.List java.net.NetworkInterface.childs' on a null object reference

version "com.siftscience:sift-android:1.0.0"
device info

Device Model moto g power
Device Name motorola
Device Type moto Device
Orientation 1
OS Build 99e0e
OS Major Version 11
OS Name Android
OS Version 11
Platform Native
Platform Version 6.4.1

It looks like it only happens on this device; any idea and potential solution? Thanks

@SanoopC
Copy link
Contributor

SanoopC commented Mar 21, 2023

@lixw1021 It's Android issue https://issuetracker.google.com/issues/204913332

ANDROID NOTE: On Android versions before S (API level 31), this method may throw a NullPointerException if called in an environment where there is a virtual interface without a parent interface present.
The issue has been fixed in Android 12.

@viaskal-sift
Copy link
Contributor

@lixw1021 Hi, can we close this issue already?

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

3 participants