forked from Embarcadero/BoldForDelphi
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Bug
The Bold menu action "Validate all forms" crashes with an access violation when:
- No project is open in the IDE
- A project group exists but has no active project
Root cause
In BoldComponentValidatorIDE.pas, the method ValidateIOTAModules accesses Project.FileName and Project.GetModuleCount without checking if Project is assigned:
Project := ProjectGroup.ActiveProject;
BoldLog.LogFmt(sDefaultProject, [Project.FileName]); // Crash if nil
Fix
Added nil checks before accessing Project properties:
- Check Assigned(Project) after ProjectGroup.ActiveProject before logging
- Wrap the project module iteration in if Assigned(Project) with a fallback log message
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working