diff --git a/compiler/cclasses.pas b/compiler/cclasses.pas index 9db94c3fc9..126661c6ea 100644 --- a/compiler/cclasses.pas +++ b/compiler/cclasses.pas @@ -3258,7 +3258,8 @@ end; procedure tbitset.clear; begin - fillchar(fdata[0],length(fdata),0); + if assigned(fdata) then + fillchar(fdata[0],length(fdata),0); end;