Details
-
Bug
-
Resolution: Done
-
P2: Important
-
QDS 2.2 Beta1, QDS 2.1
-
None
-
-
QDS 2D - 2021 Week 30/31
Description
If user opens file, that is not part of any project (100% reproduction if there are no opened projects in the application as well), and attempts to open any Annotation editor instant crash occurs.
Most probable reason is the code in AnnotationCommentTab constructor ProjectExplorer::SessionManager::startupProject()->projectFilePath(), that tries to call method from nullptr startupProject.
Caused by QDS-3306 implementation: https://codereview.qt-project.org/c/qt-creator/qt-creator/+/327249
Probably makes sense to check if there is an active project and if there is none, replace project path by the current file path. Or to deactivate add image function for files without projects