Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>In programming indexes often start at 0, so if you have 9 items, the highest index would be 8.</p> <p>The actual error is being thrown from some code within the library you are using</p> <pre><code>org.anddev.andengine.entity.Entity.onManagedDrawChildren(Entity.java:1008) </code></pre> <p>It is likely that you are changing the list in a separate thread whilst the library is also interacting with the list.</p> <hr> <p>From the <a href="https://code.google.com/p/andengine/source/browse/src/org/anddev/andengine/entity/Entity.java?r=9d1c7c0a5e53fce791b8411ac541fd74efc55f93" rel="nofollow noreferrer">gcode project</a>;</p> <pre><code> public void onManagedDrawChildren(final Camera pCamera) { final ArrayList&lt;IEntity&gt; children = this.mChildren; final int childCount = children.size(); for(int i = 0; i &lt; childCount; i++) { children.get(i).onDraw(pCamera); } } </code></pre> <p>As this is running in a separate thread, it is likely that you are removing an object from the children <code>ArrayList</code> while the loop is iterating. To fix this you should call your changes to the children <code>ArrayList</code> like jmr499485 explains in his answer.</p> <p><a href="https://stackoverflow.com/questions/18148097/java-lang-indexoutofboundsexception-invalid-index-13-size-is-13/18148283#18148097">java.lang.IndexOutOfBoundsException: Invalid index 13, size is 13</a></p> <p>The only item in your code I can see that would be causing this is the statement <code>questionText.detachSelf();</code> which you have used in many places. You should instead use;</p> <pre><code>runOnUpdateThread(new Runnable() { @Override public void run() { questionText.detachSelf(); } }); </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload