Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 397030
Collapse All | Expand All

(-)src/org/eclipse/emf/ecp/emfstore/core/internal/EMFStoreProvider.java (-1 / +6 lines)
Lines 401-407 Link Here
401
401
402
		if (element instanceof EObject) {
402
		if (element instanceof EObject) {
403
			EObject eObject = (EObject) element;
403
			EObject eObject = (EObject) element;
404
			ProjectSpace ps = WorkspaceManager.getProjectSpace(eObject);
404
			ProjectSpace ps=null;
405
			try {
406
			  ps = WorkspaceManager.getProjectSpace(eObject);
407
			} catch (IllegalArgumentException iae) {
408
				return null;
409
			}
405
			if (ps != null) {
410
			if (ps != null) {
406
				ECPModelContext context = getModelContextFromAdapter(ps.getProject());
411
				ECPModelContext context = getModelContextFromAdapter(ps.getProject());
407
				if (context != null) {
412
				if (context != null) {

Return to bug 397030