mirror of
https://github.com/yasirkula/UnityAssetUsageDetector.git
synced 2026-11-19 14:32:37 +08:00
Fixed right clicking Unused Objects group throwing an exception if that search result group hasn't been expanded yet
This commit is contained in:
@@ -725,7 +725,7 @@ namespace AssetUsageDetectorNamespace
|
||||
if( searchResult != null )
|
||||
contextMenu.AddItem( new GUIContent( "Hide" ), false, () => searchResult.RemoveSearchResultGroup( this ) );
|
||||
|
||||
if( references.Count > 0 )
|
||||
if( references.Count > 0 && treeView != null )
|
||||
{
|
||||
if( contextMenu.GetItemCount() > 0 )
|
||||
contextMenu.AddSeparator( "" );
|
||||
|
||||
Reference in New Issue
Block a user