title: Android: Facebook SDK for Android crashes with Nullpointer in Class UserSettingsManager
body: <p>Facebook SDK crashes randomly, 
  it doesn't give any info regarding what this crash is about; 
  we don't even know the action when this is happening and we are not able to reproduce this. </p>
  
  <p>Gradle setting</p>
  
  <pre><code>implementation 'com.facebook.android:facebook-android-sdk:[4,5)'
  </code></pre>
  
  <p>We are using facebook sbk to send events to FB analytics </p>
  
  <pre><code>Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean org.json.JSONObject.optBoolean(java.lang.String, boolean)' on a null object reference
     at com.facebook.UserSettingsManager$1.run(UserSettingsManager.java:148)
     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
     at java.lang.Thread.run(Thread.java:764)
  </code></pre>