java.lang.NullPointerException: Attempt to invoke interface method 'int java.lang.CharSequence.length()' on a null obj ect reference

GitHub | morckx | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Composer crashes when an invalid mail address is about to be shown in recipient selector

    GitHub | 7 months ago | morckx
    java.lang.NullPointerException: Attempt to invoke interface method 'int java.lang.CharSequence.length()' on a null obj ect reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke interface method 'int java.lang.CharSequence.length()' on a null obj ect reference

      at android.text.SpannableString.<init>()
    2. Android Platform
      Spannable$Factory.newSpannable
      1. android.text.SpannableString.<init>(SpannableString.java:30)
      2. android.text.Spannable$Factory.newSpannable(Spannable.java:67)
      2 frames
    3. com.fsck.k9
      RecipientAdapter.getView
      1. com.fsck.k9.activity.compose.RecipientAdapter.highlightText(RecipientAdapter.java:182)
      2. com.fsck.k9.activity.compose.RecipientAdapter.bindView(RecipientAdapter.java:92)
      3. com.fsck.k9.activity.compose.RecipientAdapter.getView(RecipientAdapter.java:72)
      3 frames
    4. Android Platform
      AutoCompleteTextView.showDropDown
      1. android.widget.AbsListView.obtainView(AbsListView.java:2346)
      2. android.widget.ListPopupWindow$DropDownListView.obtainView(ListPopupWindow.java:1734)
      3. android.widget.ListView.measureHeightOfChildren(ListView.java:1281)
      4. android.widget.ListPopupWindow.buildDropDown(ListPopupWindow.java:1209)
      5. android.widget.ListPopupWindow.show(ListPopupWindow.java:584)
      6. android.widget.AutoCompleteTextView.showDropDown(AutoCompleteTextView.java:1106)
      6 frames
    5. com.fsck.k9
      RecipientSelectView.showDropDown
      1. com.fsck.k9.view.RecipientSelectView.showDropDown(RecipientSelectView.java:226)
      1 frame
    6. Android Platform
      AutoCompleteTextView.updateDropDownForFilter
      1. android.widget.AutoCompleteTextView.updateDropDownForFilter(AutoCompleteTextView.java:975)
      1 frame