We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The current code at: https://github.com/ChuckerTeam/chucker/blob/develop/library/src/main/java/com/chuckerteam/chucker/internal/support/AndroidCacheFileFactory.kt#L17 assumes that context.cacheDir returns non-null value. However, on Android older than 7.0 this method can return null: http://androidxref.com/6.0.0_r1/xref/frameworks/base/core/java/android/app/ContextImpl.java#425
context.cacheDir
null
ChuckerInterceptor
Not sure what is that cache used for. If it is mandatory, NPE could be wrapped by IOException.
N/A
I haven't encountered this issue at runtime. Just realized that it may happen during #413 investigation.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
✍️ Describe the bug
The current code at: https://github.com/ChuckerTeam/chucker/blob/develop/library/src/main/java/com/chuckerteam/chucker/internal/support/AndroidCacheFileFactory.kt#L17 assumes that
context.cacheDir
returns non-null value. However, on Android older than 7.0 this method can returnnull
: http://androidxref.com/6.0.0_r1/xref/frameworks/base/core/java/android/app/ContextImpl.java#425💣 Steps to reproduce
ChuckerInterceptor
constructor.🔧 Expected behavior
Not sure what is that cache used for. If it is mandatory, NPE could be wrapped by IOException.
📷 Screenshots
N/A
📱 Tech info
📄 Additional context
I haven't encountered this issue at runtime. Just realized that it may happen during #413 investigation.
The text was updated successfully, but these errors were encountered: