[cache_dump] Only dump the hints array if it exists.

Fixes a null shared ptr bug.
This commit is contained in:
Joe Thornber 2013-12-09 11:10:49 +00:00
parent dcf70ba004
commit ecf6692d0f

View File

@ -122,7 +122,7 @@ caching::metadata_dump(metadata::ptr md, emitter::ptr e, bool repair)
// walk hints
e->begin_hints();
{
if (md->hints_) {
using namespace hint_array_damage;
hint_emitter he(e, valid_blocks);