Fixed possible NPEs if Keyframes in List being null

This commit is contained in:
CrushedPixel
2015-06-12 23:28:10 +02:00
parent 8ef7e768d6
commit 8570664edc
2 changed files with 2 additions and 5 deletions

View File

@@ -6,6 +6,7 @@ public class KeyframeComparator implements Comparator<Keyframe> {
@Override
public int compare(Keyframe o1, Keyframe o2) {
if(o1 == null || o2 == null) return 0;
return ((Integer) o1.getRealTimestamp()).compareTo(o2.getRealTimestamp());
}