diff --git a/components/wiki/lazwiki/wiki2xhtmlconvert.pas b/components/wiki/lazwiki/wiki2xhtmlconvert.pas index 4583610af2..49a44e023e 100644 --- a/components/wiki/lazwiki/wiki2xhtmlconvert.pas +++ b/components/wiki/lazwiki/wiki2xhtmlconvert.pas @@ -379,7 +379,7 @@ var URL:=GetPageLink(TargetPage); if Anchor<>'' then URL+='#'+Anchor; - end else if (not FileExistsUTF8(Filename)) then begin + end else if ((FileName <> '') and not FileExistsUTF8(Filename)) then begin if WarnMissingPageLinks and WarnURL(LinkToken.Link) then Log('WARNING: TWiki2XHTMLConverter.InsertLink "'+dbgstr(LinkToken.Link)+'": file not found: "'+Filename+'" at '+W.PosToStr(LinkToken.LinkStartPos,true)); URL:='';