IDE: fixed crash on closing package graph

git-svn-id: trunk@40658 -
This commit is contained in:
mattias 2013-03-28 10:41:52 +00:00
parent 052d1d3461
commit 16df97ee36

View File

@ -219,7 +219,9 @@ var
NodeText: String;
begin
Result:=nil;
Node:=LvlGraphControl1.Graph.FirstSelected;
Node:=nil;
if assigned(LvlGraphControl1) and assigned(LvlGraphControl1.Graph) Then
Node:=LvlGraphControl1.Graph.FirstSelected;
if Node=nil then exit;
NodePackageID:=TLazPackageID.Create;
try