MCPcopy Create free account
hub / github.com/Tripwire/tripwire-open-source / util_ThrowIfNull

Function util_ThrowIfNull

src/db/hierdatabase.cpp:47–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45// write to a null address
46
47static inline void util_ThrowIfNull(const cHierAddr& addr, const TSTRING& context)
48{
49 ASSERT(!addr.IsNull());
50 if (addr.IsNull())
51 {
52 TSTRING msg(_T("Attempt to access null address"));
53 if (!context.empty())
54 {
55 msg += _T(" in ") + context;
56 }
57 throw eHierDatabase(msg);
58 }
59}
60
61///////////////////////////////////////////////////////////////////////////////
62// util_ReadObject -- this will read the given object from the database from the

Callers 3

util_ReadObjectFunction · 0.85
util_RewriteObjectFunction · 0.85
LoadArrayAtMethod · 0.85

Calls 2

IsNullMethod · 0.80
emptyMethod · 0.80

Tested by

no test coverage detected