diff options
author | Håvard Pettersen <havardpe@yahooinc.com> | 2022-06-21 11:26:58 +0000 |
---|---|---|
committer | Håvard Pettersen <havardpe@yahooinc.com> | 2022-06-21 14:15:01 +0000 |
commit | 60e28dcd0b4c1ea9eff2e4f26da7ec53ed24e64a (patch) | |
tree | 80a479d5f62a8bb7c5ce52a5d531a434075cfe57 /searchcore/src/tests/proton/feedoperation | |
parent | 1f9c4d5b83b314785cd9c83bbecec21cb00b192b (diff) |
avoid nullptr deref
Diffstat (limited to 'searchcore/src/tests/proton/feedoperation')
-rw-r--r-- | searchcore/src/tests/proton/feedoperation/feedoperation_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searchcore/src/tests/proton/feedoperation/feedoperation_test.cpp b/searchcore/src/tests/proton/feedoperation/feedoperation_test.cpp index 5c4d7aca41d..6c1821dc00e 100644 --- a/searchcore/src/tests/proton/feedoperation/feedoperation_test.cpp +++ b/searchcore/src/tests/proton/feedoperation/feedoperation_test.cpp @@ -232,9 +232,9 @@ TEST("require that serialize/deserialize works for CompactLidSpaceOperation") op.serialize(stream); } { - const document::DocumentTypeRepo *repo = NULL; + const document::DocumentTypeRepo repo; CompactLidSpaceOperation op; - op.deserialize(stream, *repo); + op.deserialize(stream, repo); EXPECT_EQUAL(FeedOperation::COMPACT_LID_SPACE, op.getType()); EXPECT_EQUAL(2u, op.getSubDbId()); EXPECT_EQUAL(99u, op.getLidLimit()); |