Merge remote-tracking branch 'origin/GP-0-dragonmacher-test-fixes-11-29-24'

This commit is contained in:
Ryan Kurtz 2024-11-30 19:05:20 -05:00
commit 5b7b12e7d0

View File

@ -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