summaryrefslogtreecommitdiff
path: root/redfish-core/lib/telemetry_service.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'redfish-core/lib/telemetry_service.hpp')
-rw-r--r--redfish-core/lib/telemetry_service.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/redfish-core/lib/telemetry_service.hpp b/redfish-core/lib/telemetry_service.hpp
index 5457530fbd..421985a64f 100644
--- a/redfish-core/lib/telemetry_service.hpp
+++ b/redfish-core/lib/telemetry_service.hpp
@@ -58,7 +58,7 @@ inline void handleTelemetryServiceGet(
minInterval = std::get_if<uint64_t>(&var);
}
}
- if (!maxReports || !minInterval)
+ if (maxReports == nullptr || minInterval == nullptr)
{
BMCWEB_LOG_ERROR
<< "Property type mismatch or property is missing";