mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 09:49:23 +02:00
Corrected BitFieldEditorPanel NPE when getActionContext invoked with
null event.
This commit is contained in:
parent
f6671b7c21
commit
be2381e5cb
1 changed files with 1 additions and 1 deletions
|
@ -751,7 +751,7 @@ public class BitFieldEditorPanel extends JPanel {
|
|||
}
|
||||
|
||||
ActionContext getActionContext(MouseEvent event) {
|
||||
if (placementComponent == event.getSource()) {
|
||||
if (event != null && placementComponent == event.getSource()) {
|
||||
Point p = event.getPoint();
|
||||
return new BitFieldEditorContext(getDataTypeComponent(p),
|
||||
placementComponent.getBitOffset(p));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue