File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
com.unity.formats.fbx/Editor/Sources/Recorders/FbxRecorder Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,11 @@ protected override void RecordFrame(RecordingSession ctx)
16
16
17
17
protected override void EndRecording ( RecordingSession session )
18
18
{
19
+ if ( session == null )
20
+ {
21
+ throw new System . ArgumentNullException ( "session" ) ;
22
+ }
23
+
19
24
var settings = ( FbxRecorderSettings ) session . settings ;
20
25
21
26
foreach ( var input in m_Inputs )
Original file line number Diff line number Diff line change @@ -76,6 +76,10 @@ protected override bool ValidityCheck(List<string> errors)
76
76
if ( m_AnimationInputSettings . gameObject == null )
77
77
{
78
78
ok = false ;
79
+ if ( errors == null )
80
+ {
81
+ throw new System . ArgumentNullException ( "errors" ) ;
82
+ }
79
83
errors . Add ( "No input object set" ) ;
80
84
}
81
85
You can’t perform that action at this time.
0 commit comments