File tree 1 file changed +3
-3
lines changed
src/coreclr/tools/ILVerify
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ private Program(Options options)
96
96
string [ ] includePatterns = options . Include ;
97
97
if ( options . IncludeFile != null )
98
98
{
99
- if ( options . Include . Length != 0 )
99
+ if ( options . Include != null && options . Include . Length != 0 )
100
100
WriteLine ( "[Warning] --include-file takes precedence over --include" ) ;
101
101
includePatterns = File . ReadAllLines ( options . IncludeFile . FullName ) ;
102
102
}
@@ -105,7 +105,7 @@ private Program(Options options)
105
105
string [ ] excludePatterns = options . Exclude ;
106
106
if ( options . ExcludeFile != null )
107
107
{
108
- if ( options . Exclude . Length != 0 )
108
+ if ( options . Exclude != null && options . Exclude . Length != 0 )
109
109
WriteLine ( "[Warning] --exclude-file takes precedence over --exclude" ) ;
110
110
excludePatterns = File . ReadAllLines ( options . ExcludeFile . FullName ) ;
111
111
}
@@ -114,7 +114,7 @@ private Program(Options options)
114
114
string [ ] ignoreErrorPatterns = options . IgnoreError ;
115
115
if ( options . IgnoreErrorFile != null )
116
116
{
117
- if ( options . IgnoreError . Length != 0 )
117
+ if ( options . IgnoreError != null && options . IgnoreError . Length != 0 )
118
118
WriteLine ( "[Warning] --ignore-error-file takes precedence over --ignore-error" ) ;
119
119
ignoreErrorPatterns = File . ReadAllLines ( options . IgnoreErrorFile . FullName ) ;
120
120
}
You can’t perform that action at this time.
0 commit comments