Improved the "compare result changed" error message to include the most

likely cause of the error.
define_list_fix
Paul Speed 8 years ago
parent 7958ae2f46
commit ed817507d4
  1. 4
      jme3-core/src/main/java/com/jme3/util/ListSort.java

@ -700,7 +700,9 @@ public class ListSort<T> {
arr[dest + lengthB] = tempArray[iterA];
} else if(lengthA == 0){
throw new UnsupportedOperationException("Compare function result changed! " +
"Make sure you do not modify the scene from another thread!");
"Make sure you do not modify the scene from"
+ " another thread and that the comparisons are not based"
+ " on NaN values.");
} else {//Fail label
System.arraycopy(tempArray, iterA, arr, dest, lengthA);
}

Loading…
Cancel
Save