ArrayIndexOutOfBoundsException when sorting List
<p>i am facing ArrayIndexOutOfBoundsException in sorting.
my code is here:</p>

<pre><code>Collections.sort(mutualFriends, new Comparator&lt;FriendInfo&gt;() {
   public int compare(FriendInfo s1, FriendInfo s2) {
       return s1.name.compareToIgnoreCase(s2.name);
   }
});
</code></pre>

<p>Logs are here:</p>

<pre><code>    STACK_TRACE=java.lang.ArrayIndexOutOfBoundsException
    at java.util.Collections.sort(Collections.java:1970)
    at com.platinumapps.fragments.Mutual_Friends_Fragment$1.onComplete(Mutual_Friends_Fragment.java:138) 
    at com.platinumapps.facedroid.AsyncRequestListener.onComplete(AsyncRequestListener.java:59) 
    at com.facebook.android.AsyncFacebookRunner$2.run(AsyncFacebookRunner.java:328)
</code></pre>

<p>and my my mutual friendlist is as:</p>

<pre><code>private List&lt;FriendInfo&gt; mutualFriends = new ArrayList&lt;FriendInfo&gt;();
</code></pre>

<p>Any idea to fix this issue. Thanks in advance.</p>
