Bug 515185 - Breakpoints view logs unnecessary error on an out-of-date
breakpoint
Change-Id: Ib4e64d20273ea1621796eb5a62d32de06172b798
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/debug/ui/breakpoints/JavaBreakpointConditionEditor.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/debug/ui/breakpoints/JavaBreakpointConditionEditor.java
index c21f7b2..ccee86d 100644
--- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/debug/ui/breakpoints/JavaBreakpointConditionEditor.java
+++ b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/debug/ui/breakpoints/JavaBreakpointConditionEditor.java
@@ -293,7 +293,7 @@
position = new Document(source).getLineOffset(lineNumber);
}
catch (BadLocationException e) {
- JDIDebugUIPlugin.log(e);
+ // ignore, breakpoint line is out-of-date with the document
}
}
@@ -304,7 +304,7 @@
position = new Document(source).getLineOffset(lineNumber - 1);
}
catch (BadLocationException e) {
- JDIDebugUIPlugin.log(e);
+ // ignore, breakpoint line is out-of-date with the document
}
}
}