Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManju Mathew2013-05-21 15:01:45 +0000
committerMarkus Keller2013-05-21 15:01:45 +0000
commita0f013e697405dc12a34ea39752fa3fbaed64ba0 (patch)
treec70124bb1c771c72865103cc5f548de6b89e8b00
parent72eff3028fedfe989d71fc4ea780d8ce33fd4ddf (diff)
downloadeclipse.jdt.ui-a0f013e697405dc12a34ea39752fa3fbaed64ba0.tar.gz
eclipse.jdt.ui-a0f013e697405dc12a34ea39752fa3fbaed64ba0.tar.xz
eclipse.jdt.ui-a0f013e697405dc12a34ea39752fa3fbaed64ba0.zip
Bug 408330: Java Model Exception from Javadoc view if element is deleted
-rw-r--r--org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/infoviews/AbstractInfoView.java12
1 files changed, 7 insertions, 5 deletions
diff --git a/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/infoviews/AbstractInfoView.java b/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/infoviews/AbstractInfoView.java
index c2dc90e9bb..be2ee36e1e 100644
--- a/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/infoviews/AbstractInfoView.java
+++ b/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/infoviews/AbstractInfoView.java
@@ -718,11 +718,13 @@ public abstract class AbstractInfoView extends ViewPart implements ISelectionLis
if (input == null && !resetIfInvalid && fCurrentViewInput != null) {
IJavaElement oldElement= fCurrentViewInput;
// update the link image only if the old view input was a valid one
- Object oldInput= computeInput(null, null, oldElement, computeProgressMonitor);
- if (oldInput != null && oldElement.exists()) {
- // leave the last shown documentation until it becomes invalid
- updateLinkImage(true);
- return;
+ if (oldElement != null && oldElement.exists()) {
+ Object oldInput= computeInput(null, null, oldElement, computeProgressMonitor);
+ if (oldInput != null) {
+ // leave the last shown documentation until it becomes invalid
+ updateLinkImage(true);
+ return;
+ }
}
}
final String description= input != null ? computeDescription(part, selection, je, computeProgressMonitor) : ""; //$NON-NLS-1$

Back to the top