diff --git a/include/nlohmann/detail/view/materialize.hpp b/include/nlohmann/detail/view/materialize.hpp index 931594219..62adb30a9 100644 --- a/include/nlohmann/detail/view/materialize.hpp +++ b/include/nlohmann/detail/view/materialize.hpp @@ -143,8 +143,7 @@ BasicJsonType materialize(const document_data& d, const node* n) case value_t::binary: case value_t::discarded: default: - // false positive: a value in an object follows its key(), which set the - // member the parser stores it in + // false positive: the parser's frame stack points into its own storage (never null) // @infer-ignore NULLPTR_DEREFERENCE sax.null(); break; diff --git a/single_include/nlohmann/json_view.hpp b/single_include/nlohmann/json_view.hpp index 47d28ca0c..5e5486629 100644 --- a/single_include/nlohmann/json_view.hpp +++ b/single_include/nlohmann/json_view.hpp @@ -7185,8 +7185,7 @@ BasicJsonType materialize(const document_data& d, const node* n) case value_t::binary: case value_t::discarded: default: - // false positive: a value in an object follows its key(), which set the - // member the parser stores it in + // false positive: the parser's frame stack points into its own storage (never null) // @infer-ignore NULLPTR_DEREFERENCE sax.null(); break;