mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-28 15:11:44 +00:00
GP-1217 - fixed stack trace when using keyboard shortcuts in a combo box
popup menu
This commit is contained in:
parent
366d458407
commit
c6404f4dc6
@ -169,6 +169,9 @@ abstract class MenuKeyHandler {
|
||||
}
|
||||
|
||||
int itemCount = getItemCount(popup);
|
||||
if (itemCount == 0) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
// handle wrapping around to the top again
|
||||
int updatedOffset = offset >= itemCount ? offset % itemCount : offset;
|
||||
|
Loading…
Reference in New Issue
Block a user