From a138fa161e63ab78d321a6867fe362a0df60ec3f Mon Sep 17 00:00:00 2001
From: Markus Quaritsch <markus.quaritsch@tugraz.at>
Date: Mon, 2 Sep 2019 17:43:16 +0200
Subject: [PATCH]  bugfix checking for PCC option in driver strategy

---
 .../Models/SimulationComponent/Impl/DefaultDriverStrategy.cs    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Impl/DefaultDriverStrategy.cs b/VectoCore/VectoCore/Models/SimulationComponent/Impl/DefaultDriverStrategy.cs
index bce65bd6bb..91caf0f824 100644
--- a/VectoCore/VectoCore/Models/SimulationComponent/Impl/DefaultDriverStrategy.cs
+++ b/VectoCore/VectoCore/Models/SimulationComponent/Impl/DefaultDriverStrategy.cs
@@ -106,7 +106,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
 
 			PCCSegments = new PCCSegments();
 
-			if (data?.VehicleData?.ADAS?.PredictiveCruiseControl != PredictiveCruiseControlType.None) {
+			if (ADAS.PredictiveCruiseControl != PredictiveCruiseControlType.None) {
 				// create a dummy powertrain for pre-processing and estimatins
 				var modData = new ModalDataContainer(data, null, new[] { FuelData.Diesel }, null, false);
 				var builder = new PowertrainBuilder(modData);
-- 
GitLab