Skip to content

Commit 2850d65

Browse files
fix: null error when creating StreamingImageSequencePlayableAsset (#486)
1 parent 6f45610 commit 2850d65

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Runtime/Scripts/Features/SIS/StreamingImageSequencePlayableAsset.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@ public void OnGraphStart(Playable playable) {
5252
if (null != clipData) {
5353
showFrameMarkers = clipData.AreFrameMarkersRequested();
5454
}
55-
ImageDimensionInt res = GetResolution();
56-
AnalyticsSender.SendEventInEditor(new SISClipEnableEvent(duration, showFrameMarkers, m_imageFiles.Count, res.Width, res.Height));
55+
ImageDimensionInt res = GetResolution();
56+
int numImageFiles = null != m_imageFiles ? m_imageFiles.Count : 0;
57+
AnalyticsSender.SendEventInEditor(new SISClipEnableEvent(duration, showFrameMarkers, numImageFiles, res.Width, res.Height));
5758
#endif
5859
}
5960

0 commit comments

Comments
 (0)