Project: JDT
Bug 232496 Exception with Javadoc view linked to selection and closed project
Reported: 2008-05-16 09:41:29 | Status: verified fixed

I20080515-2000 Open Javadoc view, enable link with selection, select closed project Error in log: Internal Error org.eclipse.core.internal.resources.ResourceException: Resource '/org.eclipse.core.expressions' is not open. at org.eclipse.core.internal.resources.Project.checkAccessible(Project.java:116) at org.eclipse.core.internal.resources.Resource.checkAccessibleAndLocal(Resource.java:200) at org.eclipse.core.internal.resources.Resource.getPersistentProperty(Resource.java:1042) at org.eclipse.jdt.internal.corext.javadoc.JavaDocLocations.getProjectJavadocLocation(JavaDocLocations.java:248) at org.eclipse.jdt.internal.corext.javadoc.JavaDocLocations.getJavadocBaseLocation(JavaDocLocations.java:288) at org.eclipse.jdt.internal.corext.javadoc.JavaDocLocations.getJavadocLocation(JavaDocLocations.java:452) at org.eclipse.jdt.ui.JavaUI.getJavadocLocation(JavaUI.java:980) at org.eclipse.jdt.internal.ui.actions.OpenExternalBrowserAction.canEnable(OpenExternalBrowserAction.java:143) at org.eclipse.jdt.internal.ui.actions.OpenExternalBrowserAction.selectionChanged(OpenExternalBrowserAction.java:79) at org.eclipse.jdt.internal.ui.actions.SimpleSelectionProvider.setSelection(SimpleSelectionProvider.java:59) at org.eclipse.jdt.internal.ui.infoviews.JavadocView.doSetInput(JavadocView.java:915) at org.eclipse.jdt.internal.ui.infoviews.AbstractInfoView.doSetInput(AbstractInfoView.java:675) at org.eclipse.jdt.internal.ui.infoviews.AbstractInfoView.access$2(AbstractInfoView.java:674) at org.eclipse.jdt.internal.ui.infoviews.AbstractInfoView$3.run(AbstractInfoView.java:641) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:132) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3778) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3403) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2387) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2351) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2203) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:112) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:379) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504) at org.eclipse.equinox.launcher.Main.run(Main.java:1236) at org.eclipse.equinox.launcher.Main.main(Main.java:1212)

Files changed in fix:
org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/javadoc/JavaDocLocations.java