mirror of
https://github.com/AnnulusGames/Alchemy.git
synced 2025-01-22 08:18:51 -05:00
Fix: add null check
This commit is contained in:
parent
1b3e18c4e0
commit
6380011882
@ -41,8 +41,11 @@ namespace Alchemy.Editor.Elements
|
||||
|
||||
try
|
||||
{
|
||||
buttonLabel.text = (property.managedReferenceValue == null ? "Null" : property.managedReferenceValue.GetType().Name) +
|
||||
$" ({property.GetManagedReferenceFieldTypeName()})";
|
||||
if (property != null)
|
||||
{
|
||||
buttonLabel.text = (property.managedReferenceValue == null ? "Null" : property.managedReferenceValue.GetType().Name) +
|
||||
$" ({property.GetManagedReferenceFieldTypeName()})";
|
||||
}
|
||||
}
|
||||
catch (InvalidOperationException)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user