From 0fec0f9cd303f022387510323f11ca7c8c6a311a Mon Sep 17 00:00:00 2001 From: Alena Laskavaia Date: Tue, 14 Apr 2015 14:53:24 -0400 Subject: [PATCH] Bug 464639 - DsfSourceLookupParticipant throwing exception on unknown object Change-Id: Iac79f1e942c90d700f5f6275da44ea89597aa3b2 Signed-off-by: Alena Laskavaia --- .../cdt/dsf/debug/sourcelookup/DsfSourceLookupParticipant.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/debug/sourcelookup/DsfSourceLookupParticipant.java b/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/debug/sourcelookup/DsfSourceLookupParticipant.java index 0e9edb7f242..b3c2afda38a 100644 --- a/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/debug/sourcelookup/DsfSourceLookupParticipant.java +++ b/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/debug/sourcelookup/DsfSourceLookupParticipant.java @@ -191,7 +191,7 @@ public class DsfSourceLookupParticipant implements ISourceLookupParticipant { if ( !(object instanceof IDMContext) || !((IDMContext)object).getSessionId().equals(fSessionId) ) { - throw new CoreException(new Status(IStatus.ERROR, DsfPlugin.PLUGIN_ID, -1, "Invalid object", null)); //$NON-NLS-1$ + return null; } final IDMContext dmc = (IDMContext)object;