Skip to content

Commit 58119f5

Browse files
[SQ] null check inlcusion
1 parent 4cc1ac8 commit 58119f5

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

reqifviewer/Pages/Specification/SpecificationPage.razor

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,15 @@ else
111111

112112
this.reqIf = this.ReqIfLoaderService.ReqIFData.SingleOrDefault(x => x.TheHeader.Identifier == this.Identifier);
113113

114-
this.specifications = reqIf.CoreContent.Specifications;
115-
116-
this.count = this.specifications.Count();
114+
if (this.reqIf != null)
115+
{
116+
this.specifications = this.reqIf.CoreContent.Specifications;
117+
this.count = this.specifications.Count();
118+
}
119+
else
120+
{
121+
this.count = 0;
122+
}
117123
}
118124
catch (Exception e)
119125
{

0 commit comments

Comments
 (0)