diff --git a/src/MicroOcpp/Operations/StartTransaction.cpp b/src/MicroOcpp/Operations/StartTransaction.cpp index 907baaf3..924cee38 100644 --- a/src/MicroOcpp/Operations/StartTransaction.cpp +++ b/src/MicroOcpp/Operations/StartTransaction.cpp @@ -73,7 +73,7 @@ void StartTransaction::processConf(JsonObject payload) { if (payload["idTagInfo"].containsKey("parentIdTag")) { - transaction->setParentIdTag(payload["idTagInfo"]["parentIdTag"]); + transaction->setParentIdTag(payload["idTagInfo"]["parentIdTag"] | ""); } transaction->getStartSync().confirm();