Skip to content

Commit efd914f

Browse files
committed
Fix possible NRE situation
1 parent 485dc99 commit efd914f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

TestFlightAPI/TestFlightAPI/TestFlightFailure.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ public bool TestFlightEnabled
4040
{
4141
get
4242
{
43-
return TestFlightUtil.GetCore(this.part, Configuration).TestFlightEnabled;
43+
ITestFlightCore core = TestFlightUtil.GetCore(this.part, Configuration);
44+
if (core != null)
45+
return core.TestFlightEnabled;
46+
return false;
4447
}
4548
}
4649
public string Configuration

0 commit comments

Comments
 (0)