GP-734 - Fixed graph-related stack trace

This commit is contained in:
dragonmacher 2021-02-26 16:54:34 -05:00
parent 108d3c6209
commit 79d437f66d

View file

@ -15,6 +15,7 @@
*/
package ghidra.graph.viewer.popup;
import java.awt.Component;
import java.awt.Window;
import java.awt.event.*;
@ -129,6 +130,13 @@ public class PopupRegulator<V, E> {
return;
}
Component c = event.getComponent();
if (!c.isShowing()) {
// This method is called from a a timer. It is possible that the graph has been
// closed by the time this method is called.
return;
}
ToolTipInfo<?> toolTipInfo = popupSource.getToolTipInfo(event);
JComponent toolTipComponent = toolTipInfo.getToolTipComponent();
boolean isCustomJavaTooltip = !(toolTipComponent instanceof JToolTip);