Android - SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
<p>I have googled this to death but cannot find the answer anywhere.</p>

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

<p>SpannableStringBuilder
SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length</p>

<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. Does anyone have any ideas on how i can get this to load without the error?</p>

<p>Thanks in advance....</p>
