From a2d301be02e92f73c573566eaf4c08a7086c960a Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Thu, 15 Feb 2024 20:05:10 -0600 Subject: [PATCH] policy_cache.hpp --- src/policy_cache.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/policy_cache.hpp b/src/policy_cache.hpp index 9e432274..38dbc4ba 100644 --- a/src/policy_cache.hpp +++ b/src/policy_cache.hpp @@ -47,6 +47,10 @@ public: Map::const_iterator i; i = _cache.find(key_); + if(i == _cache.end()) + return NULL; + + return &i->second; } void