IDE: fixed crash, bug #16652

git-svn-id: trunk@25950 -
This commit is contained in:
mattias 2010-06-06 11:26:02 +00:00
parent 02a45e2d4d
commit a80a9f0aed

View File

@ -2264,7 +2264,8 @@ var
// create tree nodes for child code nodes
RecursiveAdd(CurNode.ChildNodes);
// do not expand unit nodes
if TObject(ParentViewNode.Data) is TCodeBrowserUnit then
if (ParentViewNode<>nil)
and (TObject(ParentViewNode.Data) is TCodeBrowserUnit) then
ExpandParent:=false;
end;
end;