title: Null pointer exception in suggestions popup window on Samsung Galaxy Android 7
body: <p>I'm seeing an unusual crash occur regularly in my app, but only on Samsung Galaxy devices running Android 7. Since my app's code doesn't feature in the stacktrace, I'm finding it very hard to track down short of going out and buying one of these expensive devices. Are there any clues to follow here?</p>
  
  <p>It appears to be an internal bug happening inside the suggestions popup associated with an input control, presumably the <code>EditText</code> that features on my app's primary screen. That <code>EditText</code> should not be presenting suggestions, since I'm also using</p>
  
  <pre><code>searchBox.setImeOptions(EditorInfo.IME_ACTION_SEARCH | EditorInfo.IME_FLAG_NO_EXTRACT_UI);
          searchBox.setInputType(EditorInfo.TYPE_CLASS_TEXT | EditorInfo.TYPE_TEXT_FLAG_NO_SUGGESTIONS);
  </code></pre>
  
  <p>The stacktrace follows:</p>
  
  <pre><code>java.lang.NullPointerException: 
      at android.widget.Editor$SuggestionsPopupWindow.initContentView(Editor.java:3729)
      at android.widget.Editor$PinnedPopupWindow.&lt;init&gt;(Editor.java:3390)
      at android.widget.Editor$SuggestionsPopupWindow.&lt;init&gt;(Editor.java:3675)
      at android.widget.Editor.replace(Editor.java:431)
      at android.widget.Editor$3.run(Editor.java:2354)
      at android.os.Handler.handleCallback(Handler.java:751)
      at android.os.Handler.dispatchMessage(Handler.java:95)
      at android.os.Looper.loop(Looper.java:154)
      at android.app.ActivityThread.main(ActivityThread.java:6776)
      at java.lang.reflect.Method.invoke(Native Method:0)
      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)
      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)
  </code></pre>