Skip to content

Commit

Permalink
cope with null string in sc->body->description in ex
Browse files Browse the repository at this point in the history
  • Loading branch information
FROGGS committed May 16, 2015
1 parent f23e56a commit 0551316
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/6model/serialization.c
Expand Up @@ -1896,7 +1896,9 @@ static void resolve_dependencies(MVMThreadContext *tc, MVMSerializationReader *r
fail_deserialize(tc, reader,
"Missing or wrong version of dependency '%s' (from '%s')",
MVM_string_ascii_encode(tc, desc, NULL),
MVM_string_ascii_encode(tc, reader->root.sc->body->description, NULL));
reader->root.sc->body->description
? MVM_string_ascii_encode(tc, reader->root.sc->body->description, NULL)
: "<unkown>");
}
reader->root.dependent_scs[i] = sc;
table_pos += 8;
Expand Down

0 comments on commit 0551316

Please sign in to comment.