[Bug]: Color Splasher enters exception loop when clicking empty "Values" list #2405
Closed
5 tasks done
Labels
Bug
Bug that stops user from using the tool or a major portion of pyRevit functionality [class]
✈ Pre-Flight checks
🐞 Describe the bug
Endless loop of exceptions caused by clicking an empty list.
⌨ Error/Debug Message
♻️ To Reproduce
Immediately after starting the command, before selecting a category, click into the "Values" ListBox. An unhandled exception occurs. Clicking continue on the error dialog triggers the exception again and the same error dialog pops up repeatedly. The UI is stuck in a loop of triggering the same exception, with no way to close the Color Splasher window, since its UI is blocked by the error dialog. The only way out is to end the Revit process.
⏲️ Expected behavior
Clicking in an unpopulated ListBox should not trigger an endless loop of exceptions.
If the ListBox reports a selected index of -1, the application should handle this by doing nothing, I presume.
🖥️ Hardware and Software Setup (please complete the following information)
Additional context
I have reproduced this bug in Revit 2022, 2023, and 2024.
The text was updated successfully, but these errors were encountered: