1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 09:25:31 +02:00

Fix for PR:175381

Check for null, there is no location path when the file is from the team
This commit is contained in:
Alain Magloire 2007-02-23 21:47:52 +00:00
parent 14675f80ff
commit 5db2221159

View file

@ -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();