diff --git a/3PA/MainFeatures/SyntaxHighlighting/SyntaxFolding.cs b/3PA/MainFeatures/SyntaxHighlighting/SyntaxFolding.cs index 803a2755..7224a8b9 100644 --- a/3PA/MainFeatures/SyntaxHighlighting/SyntaxFolding.cs +++ b/3PA/MainFeatures/SyntaxHighlighting/SyntaxFolding.cs @@ -27,11 +27,13 @@ namespace _3PA.MainFeatures.SyntaxHighlighting { internal class SyntaxFolding { public static void OnParseEndParserItems(List arg1, Dictionary lineInfos, List arg3) { - var lineInfoCopy = new Dictionary(lineInfos); - - Task.Factory.StartNew(() => { - UiThread.Invoke(() => SetFolding(lineInfoCopy)); - }); + if (lineInfos != null) { + var lineInfoCopy = new Dictionary(lineInfos); + + Task.Factory.StartNew(() => { + UiThread.Invoke(() => SetFolding(lineInfoCopy)); + }); + } } public static void SetFolding(Dictionary lineInfos) { diff --git a/3PA/Properties/AssemblyInfo.cs b/3PA/Properties/AssemblyInfo.cs index 67e35a99..65a9f0a3 100644 --- a/3PA/Properties/AssemblyInfo.cs +++ b/3PA/Properties/AssemblyInfo.cs @@ -54,5 +54,5 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.7.5.1")] +[assembly: AssemblyVersion("1.7.6.1")] //[assembly: AssemblyFileVersion("1.5.3.1")] \ No newline at end of file