mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 17:59:46 +02:00
Test fixes
This commit is contained in:
parent
ba10a7e99f
commit
6beca1b4c0
1 changed files with 3 additions and 0 deletions
|
@ -243,6 +243,9 @@ class DockableToolBarManager {
|
||||||
@Override
|
@Override
|
||||||
public boolean isEnabledForContext(ActionContext context) {
|
public boolean isEnabledForContext(ActionContext context) {
|
||||||
DockingWindowManager dwm = DockingWindowManager.getActiveInstance();
|
DockingWindowManager dwm = DockingWindowManager.getActiveInstance();
|
||||||
|
if (dwm == null) {
|
||||||
|
return false; // this can happen sometimes in test environments
|
||||||
|
}
|
||||||
ComponentProvider provider = context.getComponentProvider();
|
ComponentProvider provider = context.getComponentProvider();
|
||||||
if (provider == null) {
|
if (provider == null) {
|
||||||
// Some context providers do not specify the provider when creating a contexts
|
// Some context providers do not specify the provider when creating a contexts
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue