Merge pull request #665 from keymanapp/developer-fail-on-warning-refix

Test that project is present before attempting to check project options in build
This commit is contained in:
Marc Durdin 2018-03-12 14:33:28 +07:00 committed by GitHub
commit e81d7905a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -344,7 +344,10 @@ begin
Callback, CKF_KEYMANWEB) > 0 then // I3482 // I4866 // I4865
// TODO: Free fk
begin
if AOwnerProject.CompilerMessageFile.HasCompileWarning and FCompilerWarningsAsErrors then
if Assigned(AOwnerProject) and
Assigned(AOwnerProject.CompilerMessageFile) and
AOwnerProject.CompilerMessageFile.HasCompileWarning and
FCompilerWarningsAsErrors then
FError := True;
if not FError then