Skip to content

Commit 3f3d6de

Browse files
committed
fix FDG warnings
1 parent 127f339 commit 3f3d6de

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

com.unity.formats.fbx/Editor/Sources/Recorders/FbxRecorder/FbxRecorder.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ protected override void RecordFrame(RecordingSession ctx)
1616

1717
protected override void EndRecording(RecordingSession session)
1818
{
19+
if(session == null)
20+
{
21+
throw new System.ArgumentNullException("session");
22+
}
23+
1924
var settings = (FbxRecorderSettings)session.settings;
2025

2126
foreach (var input in m_Inputs)

com.unity.formats.fbx/Editor/Sources/Recorders/FbxRecorder/FbxRecorderSettings.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ protected override bool ValidityCheck(List<string> errors)
7676
if (m_AnimationInputSettings.gameObject == null)
7777
{
7878
ok = false;
79+
if(errors == null)
80+
{
81+
throw new System.ArgumentNullException("errors");
82+
}
7983
errors.Add("No input object set");
8084
}
8185

0 commit comments

Comments
 (0)