title: Android - SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
body: <p>I have the following layout (virtually empty):</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/set_layout"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:contentDescription="content desc"
      android:orientation="vertical" &gt;
  
      &lt;TextView android:id="@+id/text"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Hello, I am a TextView" /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>The Activity class contains the following:</p>
  
  <pre><code>public class TestActivity extends Activity {
    public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_test);   
    }
  }
  </code></pre>
  
  <p>When I run this on my mobile device I get the following error:</p>
  
  <pre><code>SpannableStringBuilder
  SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
  </code></pre>
  
  <p>I have tried this with and without the TextView and the error still remains, I must be doing something fundamentally wrong for such a basic layout to cause this. </p>
  
  <p>Does anyone have any ideas on how I can get this to load without the error?</p>