Free cookie consent management tool by TermsFeed Policy Generator

Changeset 7746


Ignore:
Timestamp:
04/22/12 18:38:58 (13 years ago)
Author:
epitzer
Message:

#1826 check for null expression before resolving symbol for tool tip information

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.CodeEditor/3.3/ToolTipProvider.cs

    r4068 r7746  
    6060        TextEditor.TextArea textArea = editor.ActiveTextAreaControl.TextArea;
    6161        NRefactoryResolver resolver = new NRefactoryResolver(codeEditor.projectContent.Language);
    62         ResolveResult rr = resolver.Resolve(expression,
    63                                             codeEditor.parseInformation,
    64                                             textArea.MotherTextEditorControl.Text);
    65         string toolTipText = GetText(rr);
    66         if (toolTipText != null) {
    67           e.ShowToolTip(toolTipText);
     62        if (expression.Expression != null) {
     63          ResolveResult rr = resolver.Resolve(expression,
     64            codeEditor.parseInformation,
     65            textArea.MotherTextEditorControl.Text);
     66          string toolTipText = GetText(rr);
     67          if (toolTipText != null) {
     68            e.ShowToolTip(toolTipText);
     69          }
    6870        }
    6971      }
Note: See TracChangeset for help on using the changeset viewer.