mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 10:19:23 +02:00
Tests - fix for failing FG test
This commit is contained in:
parent
097cf2e758
commit
00a5a4dc01
1 changed files with 4 additions and 1 deletions
|
@ -170,8 +170,11 @@ public abstract class ComponentProvider implements HelpDescriptor, ActionContext
|
||||||
*/
|
*/
|
||||||
public boolean isFocusedProvider() {
|
public boolean isFocusedProvider() {
|
||||||
DockingWindowManager dwm = DockingWindowManager.getInstance(getComponent());
|
DockingWindowManager dwm = DockingWindowManager.getInstance(getComponent());
|
||||||
|
if (dwm == null) {
|
||||||
|
return false; // can happen in testing
|
||||||
|
}
|
||||||
ComponentPlaceholder placeholder = dwm.getFocusedComponent();
|
ComponentPlaceholder placeholder = dwm.getFocusedComponent();
|
||||||
return placeholder.getProvider() == this;
|
return placeholder != null && placeholder.getProvider() == this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue