mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-12-11 21:52:12 +00:00
Merge remote-tracking branch 'origin/GP-0-dragonmacher-test-fixes-11-29-24'
This commit is contained in:
commit
5b7b12e7d0
@ -243,6 +243,9 @@ class DockableToolBarManager {
|
||||
@Override
|
||||
public boolean isEnabledForContext(ActionContext context) {
|
||||
DockingWindowManager dwm = DockingWindowManager.getActiveInstance();
|
||||
if (dwm == null) {
|
||||
return false; // this can happen sometimes in test environments
|
||||
}
|
||||
ComponentProvider provider = context.getComponentProvider();
|
||||
if (provider == null) {
|
||||
// Some context providers do not specify the provider when creating a contexts
|
||||
|
Loading…
Reference in New Issue
Block a user