Skip to content

Commit

Permalink
fix FDG warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
vkovec committed Jan 8, 2020
1 parent 127f339 commit 3f3d6de
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ protected override void RecordFrame(RecordingSession ctx)

protected override void EndRecording(RecordingSession session)
{
if(session == null)
{
throw new System.ArgumentNullException("session");
}

var settings = (FbxRecorderSettings)session.settings;

foreach (var input in m_Inputs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ protected override bool ValidityCheck(List<string> errors)
if (m_AnimationInputSettings.gameObject == null)
{
ok = false;
if(errors == null)
{
throw new System.ArgumentNullException("errors");
}
errors.Add("No input object set");
}

Expand Down

0 comments on commit 3f3d6de

Please sign in to comment.