Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 181971 Details for
Bug 328944
[Compatibility] Potentially recursive NPEs thrown after 'Synchronize' view has been closed and reopened
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
WorkbenchPartReference patch v1
bug328944-patch-v1.txt (text/plain), 1.50 KB, created by
Remy Suen
on 2010-10-28 13:55:37 EDT
(
hide
)
Description:
WorkbenchPartReference patch v1
Filename:
MIME Type:
Creator:
Remy Suen
Created:
2010-10-28 13:55:37 EDT
Size:
1.50 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.ui.workbench >Index: Eclipse UI/org/eclipse/ui/internal/WorkbenchPartReference.java >=================================================================== >RCS file: /cvsroot/eclipse/e4/org.eclipse.e4.compatibility/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPartReference.java,v >retrieving revision 1.13 >diff -u -r1.13 WorkbenchPartReference.java >--- Eclipse UI/org/eclipse/ui/internal/WorkbenchPartReference.java 21 Sep 2010 16:34:31 -0000 1.13 >+++ Eclipse UI/org/eclipse/ui/internal/WorkbenchPartReference.java 28 Oct 2010 17:55:17 -0000 >@@ -444,10 +444,17 @@ > partService.showPart(part, PartState.CREATE); > } > >- CompatibilityPart compatibilityPart = (CompatibilityPart) part.getObject(); >- if (compatibilityPart != null) { >- legacyPart = compatibilityPart.getPart(); >- addPropertyListeners(); >+ // check if we were actually created, it is insufficient to check >+ // whether the 'object' feature is valid or not because it is one of >+ // the last things to be unset during the teardown process, this >+ // means we may return a valid workbench part even if it is actually >+ // in the process of being destroyed, see bug 328944 >+ if (part.getWidget() != null) { >+ CompatibilityPart compatibilityPart = (CompatibilityPart) part.getObject(); >+ if (compatibilityPart != null) { >+ legacyPart = compatibilityPart.getPart(); >+ addPropertyListeners(); >+ } > } > } > return legacyPart;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 328944
: 181971