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 224970 Details for
Bug 397030
getModelContext() in EMFStoreProvider should not throw IllegalArgumentException
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]
patch for catching IllegalArgumentException
NoException.patch (text/plain), 844 bytes, created by
Tobias Verhoeven
on 2012-12-20 13:25:01 EST
(
hide
)
Description:
patch for catching IllegalArgumentException
Filename:
MIME Type:
Creator:
Tobias Verhoeven
Created:
2012-12-20 13:25:01 EST
Size:
844 bytes
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.emf.ecp.emfstore.core >diff --git src/org/eclipse/emf/ecp/emfstore/core/internal/EMFStoreProvider.java src/org/eclipse/emf/ecp/emfstore/core/internal/EMFStoreProvider.java >index d43f11f..6c35cef 100644 >--- src/org/eclipse/emf/ecp/emfstore/core/internal/EMFStoreProvider.java >+++ src/org/eclipse/emf/ecp/emfstore/core/internal/EMFStoreProvider.java >@@ -401,7 +401,12 @@ > > if (element instanceof EObject) { > EObject eObject = (EObject) element; >- ProjectSpace ps = WorkspaceManager.getProjectSpace(eObject); >+ ProjectSpace ps=null; >+ try { >+ ps = WorkspaceManager.getProjectSpace(eObject); >+ } catch (IllegalArgumentException iae) { >+ return null; >+ } > if (ps != null) { > ECPModelContext context = getModelContextFromAdapter(ps.getProject()); > if (context != null) {
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
Flags:
eneufeld
:
iplog+
Actions:
View
|
Diff
Attachments on
bug 397030
: 224970