mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-21 19:42:14 +00:00
Tests - fix for failing FG test
This commit is contained in:
parent
097cf2e758
commit
00a5a4dc01
@ -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…
Reference in New Issue
Block a user