codetools: method jump: error on class not found

git-svn-id: trunk@35048 -
This commit is contained in:
mattias 2012-01-31 02:38:27 +00:00
parent ec66ae883a
commit 22e07332cc

View File

@ -538,7 +538,10 @@ begin
{$IFDEF CTDEBUG}
DebugLn('TMethodJumpingCodeTool.FindJumpPoint class found: ',dbgs(ClassNode<>nil));
{$ENDIF}
if ClassNode=nil then exit;
if ClassNode=nil then begin
MoveCursorToProcName(ProcNode,false);
RaiseException('class not found "'+SearchedClassname+'"');
end;
// search first class grand child node
StartNode:=ClassNode.FirstChild;
while (StartNode<>nil) and (StartNode.FirstChild=nil) do