This repository was archived by the owner on Oct 16, 2020. It is now read-only.
File tree Expand file tree Collapse file tree
src/AddIns/Analysis/CodeCoverage/Project/Src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -133,9 +133,9 @@ static CodeCoverageStringTextSource GetSource(string filename) {
133133 stream . Position = 0 ;
134134 string textSource = ICSharpCode . AvalonEdit . Utils . FileReader . ReadFileContent ( stream , Encoding . Default ) ;
135135 retSource = new CodeCoverageStringTextSource ( textSource ) ;
136- } catch ( Exception e ) { Debug . Fail ( e . Message ) ; }
136+ } catch ( Exception ) { }
137137 }
138- } catch ( Exception e ) { Debug . Fail ( e . Message ) ; }
138+ } catch ( Exception ) { }
139139
140140 cacheGetSource_LastFileName = filename ;
141141 cacheGetSource_LastSource = retSource ;
@@ -158,11 +158,11 @@ void GetSequencePoints() {
158158 sp . Offset = ( int ) GetDecimalAttributeValue ( xSPoint . Attribute ( "offset" ) ) ;
159159 sp . BranchExitsCount = ( int ) GetDecimalAttributeValue ( xSPoint . Attribute ( "bec" ) ) ;
160160 sp . BranchExitsVisit = ( int ) GetDecimalAttributeValue ( xSPoint . Attribute ( "bev" ) ) ;
161- sp . FileID = xSPoint . Attribute ( "fileid" ) . Value ?? "0" ;
161+ sp . FileID = xSPoint . Attribute ( "fileid" ) != null ? xSPoint . Attribute ( "fileid" ) . Value : "0" ;
162162 if ( sp . FileID == "0" ) {
163163 // SequencePoint from not covered (not runnable) file
164164 // ie: interface with CodeContractClass/CodeContractClassFor
165- sp . Document = xSPoint . Attribute ( "fileid" ) . Value ?? "" ;
165+ sp . Document = xSPoint . Attribute ( "fileid" ) != null ? xSPoint . Attribute ( "fileid" ) . Value : "" ;
166166 }
167167 else if ( sp . FileID == this . FileID ) {
168168 // This method SequencePoint (from this.FileName)
You can’t perform that action at this time.
0 commit comments