diff --git a/src/Microsoft.ML.AutoML/API/RunDetails/RunDetail.cs b/src/Microsoft.ML.AutoML/API/RunDetails/RunDetail.cs index 104e428f96..0460b32d61 100644 --- a/src/Microsoft.ML.AutoML/API/RunDetails/RunDetail.cs +++ b/src/Microsoft.ML.AutoML/API/RunDetails/RunDetail.cs @@ -36,7 +36,7 @@ public sealed class RunDetail : RunDetail /// /// You can use the trained model to obtain predictions on input data. /// - public ITransformer Model { get { return _modelContainer.GetModel(); } } + public ITransformer Model { get { return _modelContainer?.GetModel(); } } /// /// Exception encountered during the run. This property is if