mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
EA-63783 - NPE: XDebugSessionImpl.updateExecutionPosition
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2014 JetBrains s.r.o.
|
||||
* Copyright 2000-2015 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -564,7 +564,7 @@ public class XDebugSessionImpl implements XDebugSession {
|
||||
@Override
|
||||
public void updateExecutionPosition() {
|
||||
boolean isTopFrame = isTopFrameSelected();
|
||||
myDebuggerManager.updateExecutionPoint(myCurrentStackFrame.getSourcePosition(), !isTopFrame, getPositionIconRenderer(isTopFrame));
|
||||
myDebuggerManager.updateExecutionPoint(getCurrentPosition(), !isTopFrame, getPositionIconRenderer(isTopFrame));
|
||||
}
|
||||
|
||||
public boolean isTopFrameSelected() {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2014 JetBrains s.r.o.
|
||||
* Copyright 2000-2015 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -278,7 +278,7 @@ public class XDebuggerManagerImpl extends XDebuggerManager
|
||||
}
|
||||
}
|
||||
|
||||
public void updateExecutionPoint(XSourcePosition position, boolean useSelection, @Nullable GutterIconRenderer gutterIconRenderer) {
|
||||
public void updateExecutionPoint(@Nullable XSourcePosition position, boolean useSelection, @Nullable GutterIconRenderer gutterIconRenderer) {
|
||||
if (position != null) {
|
||||
myExecutionPointHighlighter.show(position, useSelection, gutterIconRenderer);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user