diff --git a/ide/sourceeditprocs.pas b/ide/sourceeditprocs.pas index 520c9c9c42..5f36f2cecd 100644 --- a/ide/sourceeditprocs.pas +++ b/ide/sourceeditprocs.pas @@ -700,10 +700,14 @@ begin ctnProcedure: begin - s:=IdentItem.Tool.ExtractProcHead(ItemNode, - [phpWithoutClassName,phpWithoutName,phpWithVarModifiers, - phpWithParameterNames,phpWithDefaultValues,phpWithResultType, - phpWithOfObject,phpWithoutSemicolon]); + try + s:=IdentItem.Tool.ExtractProcHead(ItemNode, + [phpWithoutClassName,phpWithoutName,phpWithVarModifiers, + phpWithParameterNames,phpWithDefaultValues,phpWithResultType, + phpWithOfObject,phpWithoutSemicolon]); + except + // ignore, show funciton name without header + end; end; ctnProperty,ctnGlobalProperty: