Fatal Exception: java.lang.NullPointerException Attempt to invoke virtual method 'org.json.JSONObject org.json.JSONObject.getJSONObject(java.lang.String)' on a null object reference

Please provide the following:

  1. SDK Version: 36
  2. Platforms(Android/iOS/web/all): Android

Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'org.json.JSONObject org.json.JSONObject.getJSONObject(java.lang.String)' on a null object reference
       at host.exp.exponent.utils.ExperienceActivityUtils.setRootViewBackgroundColor(ExperienceActivityUtils.java:218)
       at host.exp.exponent.experience.ReactNativeActivity.hideLoadingScreen(ReactNativeActivity.java:269)
       at host.exp.exponent.experience.ReactNativeActivity.access$000(ReactNativeActivity.java:76)
       at host.exp.exponent.experience.ReactNativeActivity$2.run(ReactNativeActivity.java:256)
       at android.os.Handler.handleCallback(Handler.java:883)
       at android.os.Handler.dispatchMessage(Handler.java:100)
       at android.os.Looper.loop(Looper.java:214)
       at android.app.ActivityThread.main(ActivityThread.java:7356)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)


This is not enough info.

Please provide a minimal app that reproduces this problem.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.