mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-12-03 23:32:29 -08:00
AutoBone: Thow NullPointerException for missing frames
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user