Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1298,6 +1298,12 @@ public void DoubleClickRow(int row, bool toggleExpand, int type)
{
object[] values = gridEntry.GetPropertyValueList();

// If values.Length is 0, we can't cycle through anything.
if (values.Length == 0)
{
return;
}

if (index >= (values.Length - 1))
{
index = 0;
Expand Down Expand Up @@ -3177,6 +3183,12 @@ protected override void OnMouseWheel(MouseEventArgs e)
int delta = e.Delta > 0 ? -1 : 1;
object[] values = _selectedGridEntry.GetPropertyValueList();

// Prevent out-of-range access
if (values.Length == 0)
{
return;
}

if (delta > 0 && index >= (values.Length - 1))
{
index = 0;
Expand Down
Loading