From 9d7f3ee5024258b931d74248d189608c105aaf1f Mon Sep 17 00:00:00 2001 From: Heejae Chang Date: Tue, 4 Aug 2015 14:20:06 -0700 Subject: [PATCH] guard from null exception --- .../TableDataSource/VisualStudioDiagnosticListTable.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/VisualStudio/Core/Def/Implementation/TableDataSource/VisualStudioDiagnosticListTable.cs b/src/VisualStudio/Core/Def/Implementation/TableDataSource/VisualStudioDiagnosticListTable.cs index c88b2511d7b..7eb1e2ea1ba 100644 --- a/src/VisualStudio/Core/Def/Implementation/TableDataSource/VisualStudioDiagnosticListTable.cs +++ b/src/VisualStudio/Core/Def/Implementation/TableDataSource/VisualStudioDiagnosticListTable.cs @@ -49,6 +49,11 @@ internal class VisualStudioDiagnosticListTable : VisualStudioBaseDiagnosticListT private ITableDataSource GetCurrentDataSource() { + if (_errorList == null) + { + return _liveTableSource; + } + return _errorList.AreOtherErrorSourceEntriesShown ? (ITableDataSource)_liveTableSource : _buildTableSource; } -- GitLab