File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
External/Plugins/ProjectManager/Controls/TreeView Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ public override void Refresh(bool recursive)
55
55
string path = BackingPath ;
56
56
string ext = Path . GetExtension ( path ) . ToLower ( ) ;
57
57
58
- if ( project . IsPathHidden ( path ) )
58
+ if ( project != null && project . IsPathHidden ( path ) )
59
59
ImageIndex = Icons . HiddenFile . Index ;
60
60
else if ( ( FileInspector . IsActionScript ( path , ext ) || FileInspector . IsHaxeFile ( path , ext ) ) && project . IsCompileTarget ( path ) )
61
61
ImageIndex = Icons . ActionScriptCompile . Index ;
@@ -72,7 +72,7 @@ public override void Refresh(bool recursive)
72
72
Text = Path . GetFileName ( path ) ;
73
73
74
74
string colorId = "ProjectTreeView.ForeColor" ;
75
- if ( project . IsLibraryAsset ( path ) )
75
+ if ( project != null && project . IsLibraryAsset ( path ) )
76
76
{
77
77
LibraryAsset asset = project . GetAsset ( path ) ;
78
78
if ( asset != null && asset . IsSwc )
You can’t perform that action at this time.
0 commit comments