File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
RetailCoder.VBE/UI/CodeInspections
Rubberduck.Parsing/Symbols Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ public IInspection SelectedInspection
131
131
132
132
public bool CanRefresh
133
133
{
134
- get { return _canRefresh ; }
134
+ get { return true /* _canRefresh*/ ; }
135
135
private set
136
136
{
137
137
_canRefresh = value ;
@@ -259,6 +259,11 @@ private void ExecuteQuickFixInProjectCommand(object parameter)
259
259
260
260
private void ExecuteCopyResultsCommand ( object parameter )
261
261
{
262
+ if ( _results == null )
263
+ {
264
+ return ;
265
+ }
266
+
262
267
var results = string . Join ( "\n " , _results . Select ( result => result . ToString ( ) ) , "\n " ) ;
263
268
var resource = _results . Count == 1
264
269
? RubberduckUI . CodeInspections_NumberOfIssuesFound_Singular
Original file line number Diff line number Diff line change @@ -104,12 +104,12 @@ public void ClearReferences()
104
104
}
105
105
106
106
private readonly string _annotations ;
107
- public string Annotations { get { return _annotations ; } }
107
+ public string Annotations { get { return _annotations ?? string . Empty ; } }
108
108
109
109
public bool IsInspectionDisabled ( string inspectionName )
110
110
{
111
- return _annotations . Contains ( Grammar . Annotations . IgnoreInspection )
112
- && _annotations . Contains ( inspectionName ) ;
111
+ return Annotations . Contains ( Grammar . Annotations . IgnoreInspection )
112
+ && Annotations . Contains ( inspectionName ) ;
113
113
}
114
114
115
115
public void AddReference ( IdentifierReference reference )
You can’t perform that action at this time.
0 commit comments