A couple null ptr checks.

This commit is contained in:
Jon Siwek 2013-09-25 11:16:46 -05:00
parent daf5d0d098
commit 3c37e818ce
2 changed files with 23 additions and 5 deletions

View file

@ -721,7 +721,7 @@ static char* get_prompt(bool reset_counter = false)
string get_context_description(const Stmt* stmt, const Frame* frame)
{
ODesc d;
const BroFunc* func = frame->GetFunction();
const BroFunc* func = frame ? frame->GetFunction() : 0;
if ( func )
func->DescribeDebug(&d, frame->GetFuncArgs());