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

GitHub | morckx | 8 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

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

    GitHub | 8 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