You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
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
Crash right after start up (stack trace below). I would guess this is related to Google's own testing since the device reported was jailbroken and looked suspicious, but I thought you might be interested in the crash either way.
The following crash was reported right after app startup:
java.lang.NullPointerException Attempt to invoke virtual method 'android.content.SharedPreferences android.content.Context.getSharedPreferences(java.lang.String, int)' on a null object reference
Your Environment
Plugin version: 3.1.0
Platform: iOS or Android: Android
OS version: 6.0.1
Device manufacturer / model: LGE Nexus 5X
React Native version (
react-native -v
): 0.62.2
Plugin config:
minimumFetchInterval: 60 * 3,
stopOnTerminate: false,
startOnBoot: true,
enableHeadless: true
Expected Behavior
No Crash
Actual Behavior
Crash right after app startup
Steps to Reproduce
Context
Regular use
Debug logs
java.lang.NullPointerException Attempt to invoke virtual method 'android.content.SharedPreferences android.content.Context.getSharedPreferences(java.lang.String, int)' on a null object reference
BackgroundFetchConfig.java:342 com.transistorsoft.tsbackgroundfetch.BackgroundFetchConfig$1.run
ThreadPoolExecutor.java:1113 java.util.concurrent.ThreadPoolExecutor.runWorker
ThreadPoolExecutor.java:588 java.util.concurrent.ThreadPoolExecutor$Worker.run
Thread.java:818 java.lang.Thread.run