Changeset 7983


Ignore:
Timestamp:
06/11/12 16:09:18 (9 years ago)
Author:
epitzer
Message:

#1826 catch exceptions from sharp develop code completion

File:
1 edited

Legend:

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

    r4068 r7983  
    9292      List<ICompletionData> resultList = new List<ICompletionData>();
    9393      if (rr != null) {
    94         ArrayList completionData = rr.GetCompletionData(codeEditor.projectContent);
    95         if (completionData != null) {
    96           AddCompletionData(resultList, completionData);
    97         }
     94        try {
     95          ArrayList completionData = rr.GetCompletionData(codeEditor.projectContent);
     96          if (completionData != null) {
     97            AddCompletionData(resultList, completionData);
     98          }
     99        } catch (NullReferenceException x) { }
    98100      }
    99101      return resultList.ToArray();
Note: See TracChangeset for help on using the changeset viewer.