From 5db22211592274f524de8ac8e534403afe21dc1b Mon Sep 17 00:00:00 2001 From: Alain Magloire Date: Fri, 23 Feb 2007 21:47:52 +0000 Subject: [PATCH] Fix for PR:175381 Check for null, there is no location path when the file is from the team --- .../cdt/internal/ui/editor/ExternalSearchDocumentProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/ExternalSearchDocumentProvider.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/ExternalSearchDocumentProvider.java index e6365b9f670..416a6ebc581 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/ExternalSearchDocumentProvider.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/ExternalSearchDocumentProvider.java @@ -41,7 +41,7 @@ public class ExternalSearchDocumentProvider extends TextFileDocumentProvider { */ protected FileInfo createFileInfo(Object element) throws CoreException { final FileInfo info= super.createFileInfo(element); - if (info.fModel == null) { + if (info != null && info.fModel == null) { info.fModel= createAnnotationModel(element); if (info.fModel != null) { IAnnotationModel fileBufferAnnotationModel= info.fTextFileBuffer.getAnnotationModel();