@Override
<BUG>protected void clear(@Nullable XDebugSession session) {
XDebuggerTree tree = getTree();</BUG>
tree.getProject().putUserData(DEBUG_VARIABLES, null);
tree.setSourcePosition(null);
<BUG>XDebuggerTreeNode node;
if (session == null || (!session.isStopped() && session.isPaused())) {</BUG>
node = createInfoMessage(tree, "Frame is not available");
}
else {

@Override
protected void clear() {
XDebuggerTree tree = getTree();
tree.getProject().putUserData(DEBUG_VARIABLES, null);
tree.setSourcePosition(null);
XDebuggerTreeNode node;
XDebugSession session = getSession(getPanel());
if (session == null || (!session.isStopped() && session.isPaused())) {
node = createInfoMessage(tree, "Frame is not available");
}
else {
