Skip to content

Instantly share code, notes, and snippets.

@cmcewen
Created June 16, 2016 22:07
Show Gist options
  • Save cmcewen/8f1fe88d47c8606ffd2032bb29812726 to your computer and use it in GitHub Desktop.
Save cmcewen/8f1fe88d47c8606ffd2032bb29812726 to your computer and use it in GitHub Desktop.
RN crash
06-16 22:05:49.813 22411-22411/? E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.NullPointerException: Argument 'context' cannot be null
at com.facebook.internal.Validate.notNull(Validate.java:76)
at com.facebook.internal.Utility.getMetadataApplicationId(Utility.java:594)
at com.facebook.appevents.AppEventsLogger.<init>(AppEventsLogger.java:757)
at com.facebook.appevents.AppEventsLogger.<init>(AppEventsLogger.java:732)
at com.facebook.appevents.AppEventsLogger.newLogger(AppEventsLogger.java:400)
at com.facebook.reactnative.androidsdk.FBAppEventsLoggerModule.initialize(FBAppEventsLoggerModule.java:117)
at com.facebook.react.bridge.NativeModuleRegistry.notifyCatalystInstanceInitialized(NativeModuleRegistry.java:114)
at com.facebook.react.bridge.CatalystInstanceImpl.initialize(CatalystInstanceImpl.java:275)
at com.facebook.react.ReactInstanceManagerImpl.setupReactContext(ReactInstanceManagerImpl.java:727)
at com.facebook.react.ReactInstanceManagerImpl.access$800(ReactInstanceManagerImpl.java:102)
at com.facebook.react.ReactInstanceManagerImpl$ReactContextInitAsyncTask.onPostExecute(ReactInstanceManagerImpl.java:208)
at com.facebook.react.ReactInstanceManagerImpl$ReactContextInitAsyncTask.onPostExecute(ReactInstanceManagerImpl.java:181)
at android.os.AsyncTask.finish(AsyncTask.java:631)
at android.os.AsyncTask.access$600(AsyncTask.java:177)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:644)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5103)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at dalvik.system.NativeStart.main(Native Method)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment