Project: Eclipse_Platform_UI
Bug 328944 [Compatibility] Potentially recursive NPEs thrown after 'Synchronize' view has been closed and reopened
Reported: 2010-10-28 12:41:26 | Status: resolved fixed

Confirmed on I20101022-1046 and I20101028-1046. 1. Make changes to a project under version control. 2. Synchronize and switch perspectives. 3. Close the 'Synchronize' view 4. Reopen it. 5. Trying to activate another view will now cause NPEs. 6. Close the 'Synchronize' view. It should be the active view so clicking the 'X' should be okay. 7. If you reopen the view you are okay again. Unfortunately, the workaround is non-obvious. Caused by: java.lang.NullPointerException at org.eclipse.ui.part.PageBookView$4.partDeactivated(PageBookView.java:1047) at org.eclipse.ui.internal.WorkbenchPage.firePartDeactivated(WorkbenchPage.java:3054) at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:3043) at org.eclipse.ui.internal.WorkbenchPage$E4PartListener.partDeactivated(WorkbenchPage.java:142) at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.firePartDeactivated(PartServiceImpl.java:173) at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.setPart(PartServiceImpl.java:140) at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:52) ... 91 more

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPartReference.java