{"action":"opened","issue":{"url":"https://api.github.com/repos/handcircus/Unity-Resource-Checker/issues/13","repository_url":"https://api.github.com/repos/handcircus/Unity-Resource-Checker","labels_url":"https://api.github.com/repos/handcircus/Unity-Resource-Checker/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/handcircus/Unity-Resource-Checker/issues/13/comments","events_url":"https://api.github.com/repos/handcircus/Unity-Resource-Checker/issues/13/events","html_url":"https://github.com/handcircus/Unity-Resource-Checker/issues/13","id":146842467,"number":13,"title":"Null Check on AnimationClips","user":{"login":"Michael-Schaer","id":1799621,"avatar_url":"https://avatars.githubusercontent.com/u/1799621?v=3","gravatar_id":"","url":"https://api.github.com/users/Michael-Schaer","html_url":"https://github.com/Michael-Schaer","followers_url":"https://api.github.com/users/Michael-Schaer/followers","following_url":"https://api.github.com/users/Michael-Schaer/following{/other_user}","gists_url":"https://api.github.com/users/Michael-Schaer/gists{/gist_id}","starred_url":"https://api.github.com/users/Michael-Schaer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Michael-Schaer/subscriptions","organizations_url":"https://api.github.com/users/Michael-Schaer/orgs","repos_url":"https://api.github.com/users/Michael-Schaer/repos","events_url":"https://api.github.com/users/Michael-Schaer/events{/privacy}","received_events_url":"https://api.github.com/users/Michael-Schaer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-08T07:33:59Z","updated_at":"2016-04-08T07:33:59Z","closed_at":null,"body":"Line 647 misses a null check:\r\n\r\nOriginal:\r\n```\r\nif (m != null) \r\n{\r\n  AnimationClip clip = m as AnimationClip;\r\n\r\n  EditorCurveBinding[] ecbs = AnimationUtility.GetObjectReferenceCurveBindings(clip);\r\n```\r\n\r\n\r\nFixed:\r\n```\r\nif (m != null)\r\n{\r\n  AnimationClip clip = m as AnimationClip;\r\n\r\n  if (clip != null)\r\n  {\r\n    EditorCurveBinding[] ecbs = AnimationUtility.GetObjectReferenceCurveBindings(clip);\r\n```\r\n\r\n\r\nThx for sharing this very useful Asset!"}}