Guard against NULL value passed to "end" directive

Fixes 89233B6D-CB21-4162-98E3-BE38B9336070
This commit is contained in:
John Wiegley 2010-05-22 13:23:38 -04:00
parent 8d4de77836
commit 68056c1948

View file

@ -713,7 +713,7 @@ void instance_t::master_account_directive(char * line)
void instance_t::end_directive(char * kind)
{
string name(kind);
string name(kind ? kind : "");
if ((name.empty() || name == "account") && ! context.front_is_account())
throw_(std::runtime_error,