Describe the bug
If we click on the wrong place in the dependency viewer, then a debug alert dialog is triggered.
To Reproduce
Steps to reproduce the behavior:
Open the dependency viewer
Click on something, which is not part of the list
See error
Expected behavior
This dialog should not appear.
Screenshots
Desktop (please complete the following information):
OS: 10x64
Version v1.1.5.2303
Additional context
Add any other context about the problem here.
(Do not write below this line)
DEVS' SECTION
ANALYSIS
The problem is in void DependencyDialog::OnItemSelected(wxTreeEvent& event) in dependencydialog.cpp. Here, it isn't checked, whether the selected item is actually valid, i.e. event.GetItem().IsOk(). Add that check and only proceed, if it returns true.
DESCRIPTION
Describe the bug If we click on the wrong place in the dependency viewer, then a debug alert dialog is triggered.
To Reproduce Steps to reproduce the behavior:
Expected behavior This dialog should not appear.
Screenshots
Desktop (please complete the following information):
Additional context Add any other context about the problem here.
(Do not write below this line)
DEVS' SECTION
ANALYSIS
The problem is in
void DependencyDialog::OnItemSelected(wxTreeEvent& event)
independencydialog.cpp
. Here, it isn't checked, whether the selected item is actually valid, i.e.event.GetItem().IsOk()
. Add that check and only proceed, if it returnstrue
.IMPLEMENTATION STEPS
(see also our Wiki for implementation guidelines)
DOCUMENTATION STEPS
(see also our Wiki for further information)
*.NHLP
and*.NDB
files, if needed)*.NLNG
files, if needed)PULL REQUEST