EA-63783 - NPE: XDebugSessionImpl.updateExecutionPosition

This commit is contained in:
Egor.Ushakov
2015-01-20 13:01:07 +03:00
parent 5d94f4fdb9
commit 0bec748d2f
2 changed files with 4 additions and 4 deletions
@@ -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);
}