AutoBone: Thow NullPointerException for missing frames

This commit is contained in:
ButterscotchVanilla committed 2021-08-19 02:38:18 -04:00
1 parent b05d726ad0
commit bc132b7757
1 file changed
+2 -2
@@ -265,9 +265,9 @@ public class AutoBone {
PoseFrame frame1 = frames[frameCursor];
PoseFrame frame2 = frames[frameCursor + cursorOffset];
// If there's missing data, skip it
// If there's missing data, throw an exception
if (frame1 == null || frame2 == null) {
continue;
throw new NullPointerException("Frames are missing from processing data");
}
skeleton1.setSkeletonConfigs(configs);