Skip to content

Conversation

@stephengold
Copy link
Member

As noted at the Forum, it's easy to create a TransformTrack without any translations or rotations. Since there are null checks in getDataAtTime(), such tracks can be useful. However, the getTranslations() and getRotations() methods lack null checks, leading to NPEs when applied to such tracks.

This PR would avoid NPEs on tracks without any translations or rotations.

@stephengold stephengold added the bug Something that is supposed to work, but doesn't. More severe than a "defect". label Apr 26, 2021
@stephengold stephengold added this to the v3.4.0 milestone Apr 26, 2021
@stephengold stephengold merged commit befaca7 into master May 1, 2021
@stephengold stephengold deleted the sgold-nullcheck-transformtrack branch May 1, 2021 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something that is supposed to work, but doesn't. More severe than a "defect".

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants