Fix nullref.

This commit is contained in:
smoogipooo 2017-03-23 20:34:11 +09:00
parent a0c0a0fcfe
commit c3adbb9b41
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ private TaikoHitObject convertHitObject(HitObject original)
IHasRepeats repeatsData = original as IHasRepeats;
IHasEndTime endTimeData = original as IHasEndTime;
bool isFinisher = (original.Sample.Type & SampleType.Finish) > 0;
bool isFinisher = ((original.Sample?.Type ?? SampleType.None) & SampleType.Finish) > 0;
if (distanceData != null)
{