mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-06 03:50:02 +02:00
GP-1628 fixed stack trace when invoking contextMenu without using mouse
This commit is contained in:
parent
3a992382f7
commit
0f078b47bc
1 changed files with 4 additions and 2 deletions
|
@ -228,8 +228,10 @@ public class ActionContext {
|
||||||
* @return this context
|
* @return this context
|
||||||
*/
|
*/
|
||||||
public ActionContext setMouseEvent(MouseEvent e) {
|
public ActionContext setMouseEvent(MouseEvent e) {
|
||||||
this.mouseEvent = e;
|
if (e != null) {
|
||||||
this.eventClickModifiers = e.getModifiersEx();
|
this.mouseEvent = e;
|
||||||
|
this.eventClickModifiers = e.getModifiersEx();
|
||||||
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue