Fix: Dereference of null pointer in FMenu

This commit is contained in:
Markus Gans 2016-08-06 22:01:22 +02:00
parent 5606d66404
commit 4deede746f
1 changed files with 3 additions and 1 deletions

View File

@ -614,6 +614,8 @@ void FMenu::draw()
{ {
drawMenuShadow(); drawMenuShadow();
term_area* area = getWindowWidget(this)->getVWin(); term_area* area = getWindowWidget(this)->getVWin();
if ( area )
putArea (xpos+xmin-1, ypos+ymin-1, area); putArea (xpos+xmin-1, ypos+ymin-1, area);
} }
else else