Project: Eclipse_Platform_UI
Bug 99070 [Intro] PlatformUI.getWorkbench().getIntroManager().getIntro() returns a disposed intro
Reported: 2005-06-08 17:18:45 | Status: verified fixed

Java docs for PlatformUI.getWorkbench().getIntroManager().getIntro() state that it will return null if showIntro has been called to create. However, when you close an Intro part using the X button of the view the above method returns an intro part that has been disposed. To reproduce, contribute a test button to the workbench that calls PlatformUI.getWorkbench().getIntroManager().getIntro() when pressed. Open a simple Intro part, close it using the X button. Now click on the test button, the method does not return null.

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchIntroManager.java tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/intro/IntroTest.java