diff --git a/source/RobotAPI/components/units/RobotUnit/RobotUnitModules/RobotUnitModuleLogging.cpp b/source/RobotAPI/components/units/RobotUnit/RobotUnitModules/RobotUnitModuleLogging.cpp
index 8748a36239c3d84cfac49cbd864727e8e8a94a15..c9e932470ccbd31f5dae7d36017c75dbc970be92 100644
--- a/source/RobotAPI/components/units/RobotUnit/RobotUnitModules/RobotUnitModuleLogging.cpp
+++ b/source/RobotAPI/components/units/RobotUnit/RobotUnitModules/RobotUnitModuleLogging.cpp
@@ -95,6 +95,7 @@ namespace armarx
             {
                 throw InvalidArgumentException {"There already is a logger for the path '" + pb.getPath() + "'"};
             }
+            rtLoggingEntries[pb.getPath()].reset(new CSVLoggingEntry());
             auto ptr = rtLoggingEntries[pb.getPath()];
             CSVLoggingEntry& e = *ptr;
             e.filename = pb.getPath();