From 89e6b43c219ee3a8af10673b66605effc2e05087 Mon Sep 17 00:00:00 2001 From: Egor Ushakov Date: Wed, 16 Jan 2019 17:32:04 +0300 Subject: [PATCH] IDEA-205407 Parameter is not resolved in breakpoint condition after adding @NotNull to parameter --- .../xdebugger/impl/breakpoints/XLineBreakpointImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/breakpoints/XLineBreakpointImpl.java b/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/breakpoints/XLineBreakpointImpl.java index a782cd89df0c..258606a2b015 100644 --- a/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/breakpoints/XLineBreakpointImpl.java +++ b/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/breakpoints/XLineBreakpointImpl.java @@ -1,4 +1,4 @@ -// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. +// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.xdebugger.impl.breakpoints; import com.intellij.openapi.application.ApplicationManager; @@ -263,6 +263,7 @@ public class XLineBreakpointImpl

extends XBreak public void updatePosition() { if (myHighlighter != null && myHighlighter.isValid()) { setLine(myHighlighter.getDocument().getLineNumber(myHighlighter.getStartOffset()), false); + mySourcePosition = null; // need to clear this no matter what as the offset may be cached inside } }