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:
parent
14675f80ff
commit
5db2221159
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue