Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Becker2020-01-29 15:20:43 +0000
committerMatthias Becker2020-01-29 15:20:43 +0000
commitb34d3e266290b9a685f957d6363fbeb6e3a9d31c (patch)
tree52e1ca6b78ce8a73789c949a2568d1b73ce3172b
parentf46a3eeaeae06e789a5480067a2a29394883284f (diff)
downloadeclipse.platform.text-b34d3e266290b9a685f957d6363fbeb6e3a9d31c.tar.gz
eclipse.platform.text-b34d3e266290b9a685f957d6363fbeb6e3a9d31c.tar.xz
eclipse.platform.text-b34d3e266290b9a685f957d6363fbeb6e3a9d31c.zip
Bug 559665: Remove workaround for bug 552760Y20200130-0045I20200129-1800
Bug 552760 is fixed in the meantime. In addition just catching NPEs hides other bugs. Change-Id: I64446ff9b212bc1f619250ae8033deb3385b57c7 Signed-off-by: Matthias Becker <ma.becker@sap.com>
-rw-r--r--org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/codemining/annotation/AnnotationCodeMiningFilter.java8
1 files changed, 1 insertions, 7 deletions
diff --git a/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/codemining/annotation/AnnotationCodeMiningFilter.java b/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/codemining/annotation/AnnotationCodeMiningFilter.java
index f855ba8a2..6803886e4 100644
--- a/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/codemining/annotation/AnnotationCodeMiningFilter.java
+++ b/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/codemining/annotation/AnnotationCodeMiningFilter.java
@@ -101,13 +101,7 @@ public class AnnotationCodeMiningFilter {
}
private boolean isPaintable(Annotation a) {
- // workaround for https://bugs.eclipse.org/bugs/show_bug.cgi?id=552760
- // (NPE on JavaAnnotationImageProvider.getQuickFixErrorImage(): No Display)
- try {
- return annotationAccess.isPaintable(a);
- } catch (NullPointerException e) {
- return false;
- }
+ return annotationAccess.isPaintable(a);
}
private boolean isInScope(Annotation a) {

Back to the top