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 152596 Details for
Bug 277375
NPE shutting down with compare editor open
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Fix (for NPE but not for its root cause)
patch.txt (text/plain), 1.56 KB, created by
Dani Megert
on 2009-11-19 11:13:16 EST
(
hide
)
Description:
Fix (for NPE but not for its root cause)
Filename:
MIME Type:
Creator:
Dani Megert
Created:
2009-11-19 11:13:16 EST
Size:
1.56 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.team.ui >Index: src/org/eclipse/team/ui/synchronize/SaveableCompareEditorInput.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.team.ui/src/org/eclipse/team/ui/synchronize/SaveableCompareEditorInput.java,v >retrieving revision 1.20 >diff -u -r1.20 SaveableCompareEditorInput.java >--- src/org/eclipse/team/ui/synchronize/SaveableCompareEditorInput.java 30 Jul 2009 09:25:16 -0000 1.20 >+++ src/org/eclipse/team/ui/synchronize/SaveableCompareEditorInput.java 19 Nov 2009 16:13:05 -0000 >@@ -280,19 +280,27 @@ > if (isSaveNeeded() && checkForUnsavedChanges) { > return false; > } else { >+ final IWorkbenchPage page= getPage(); >+ if (page == null) >+ return false; >+ > Runnable runnable = new Runnable() { > public void run() { >- IEditorPart part = getPage().findEditor(SaveableCompareEditorInput.this); >+ Shell shell= page.getWorkbenchWindow().getShell(); >+ if (shell == null) >+ return; >+ >+ IEditorPart part= page.findEditor(SaveableCompareEditorInput.this); > getPage().closeEditor(part, false); > } > }; > if (Display.getCurrent() != null) { > runnable.run(); > } else { >- IWorkbenchPage page = getPage(); >- if (page == null) >+ Shell shell= page.getWorkbenchWindow().getShell(); >+ if (shell == null) > return false; >- Display display = page.getWorkbenchWindow().getShell().getDisplay(); >+ Display display= shell.getDisplay(); > display.asyncExec(runnable); > } > return true;
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 277375
:
140943
|
140944
| 152596