Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Null Check on AnimationClips #13

Open
Michael-Schaer opened this issue Apr 8, 2016 · 0 comments
Open

Null Check on AnimationClips #13

Michael-Schaer opened this issue Apr 8, 2016 · 0 comments

Comments

@Michael-Schaer
Copy link

Line 647 misses a null check:

Original:

if (m != null) 
{
  AnimationClip clip = m as AnimationClip;

  EditorCurveBinding[] ecbs = AnimationUtility.GetObjectReferenceCurveBindings(clip);

Fixed:

if (m != null)
{
  AnimationClip clip = m as AnimationClip;

  if (clip != null)
  {
    EditorCurveBinding[] ecbs = AnimationUtility.GetObjectReferenceCurveBindings(clip);

Thx for sharing this very useful Asset!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant