From f0a16ef93a9243571df4d5ee19e5348655b6f813 Mon Sep 17 00:00:00 2001 From: Ken Ryall Date: Thu, 22 Jan 2009 07:41:53 +0000 Subject: [PATCH] Bug 259880. --- .../core/sourcelookup/CSourceLookupParticipant.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CSourceLookupParticipant.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CSourceLookupParticipant.java index 2e332e6027d..25ac60362a7 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CSourceLookupParticipant.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CSourceLookupParticipant.java @@ -290,8 +290,11 @@ public class CSourceLookupParticipant extends AbstractSourceLookupParticipant { } private void endContainersSourceDirector() { - for (ISourceContainer cont : containers) - cont.init(getDirector()); + if (containers != null) + { + for (ISourceContainer cont : containers) + cont.init(getDirector()); + } containers = null; } }