Skip to content

Commit 1aea4cc

Browse files
authored
Merge pull request #1419 from TestCentric/issue-1414-2
Fix crash opening File menu when no project is loaded
2 parents 9011bf0 + e2a2035 commit 1aea4cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GuiRunner/TestModel/TestModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public IEnumerable<string> ResultFormats
159159
/// </summary>
160160
public TestCentricProject TestCentricProject { get; set; }
161161

162-
public TestPackage TopLevelPackage => TestCentricProject.TopLevelPackage;
162+
public TestPackage TopLevelPackage => TestCentricProject?.TopLevelPackage;
163163

164164
public bool IsProjectLoaded => TestCentricProject != null;
165165

0 commit comments

Comments
 (0)