Fix: Dereference of null pointer in FMenu
This commit is contained in:
parent
5606d66404
commit
4deede746f
|
@ -614,7 +614,9 @@ void FMenu::draw()
|
||||||
{
|
{
|
||||||
drawMenuShadow();
|
drawMenuShadow();
|
||||||
term_area* area = getWindowWidget(this)->getVWin();
|
term_area* area = getWindowWidget(this)->getVWin();
|
||||||
putArea (xpos+xmin-1, ypos+ymin-1, area);
|
|
||||||
|
if ( area )
|
||||||
|
putArea (xpos+xmin-1, ypos+ymin-1, area);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
updateVTerm(true);
|
updateVTerm(true);
|
||||||
|
|
Loading…
Reference in New Issue