test: Check for some unlikely null dereferences in tests (#5004)

This commit is contained in:
Ed Hennis
2024-12-03 15:03:22 -05:00
parent d7e949193f
commit 8215c605b4
2 changed files with 7 additions and 3 deletions

View File

@@ -41,7 +41,7 @@ public:
env.fund(XRP(10000), noripple(alice));
// ask for the ledger entry - account root, to check its flags
auto const jrr = env.le(alice);
BEAST_EXPECT((*env.le(alice))[sfFlags] == 0u);
BEAST_EXPECT(jrr && jrr->at(sfFlags) == 0u);
}
void