check for null bufRef
This commit is contained in:
Родитель
10babd2291
Коммит
3f675e79e5
|
@ -250,7 +250,7 @@ namespace Stride.Physics
|
||||||
{
|
{
|
||||||
byte[] output;
|
byte[] output;
|
||||||
var bufRef = AttachedReferenceManager.GetAttachedReference(buffer);
|
var bufRef = AttachedReferenceManager.GetAttachedReference(buffer);
|
||||||
if (bufRef.Data != null && (output = ((BufferData)bufRef.Data).Content) != null)
|
if (bufRef?.Data != null && (output = ((BufferData)bufRef.Data).Content) != null)
|
||||||
return output;
|
return output;
|
||||||
|
|
||||||
// Editor-specific workaround, we can't load assets when the file provider is null,
|
// Editor-specific workaround, we can't load assets when the file provider is null,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче