From 4deede746fd3b70ab0ed7a22fba0bcbf89f2fb21 Mon Sep 17 00:00:00 2001 From: Markus Gans Date: Sat, 6 Aug 2016 22:01:22 +0200 Subject: [PATCH] Fix: Dereference of null pointer in FMenu --- src/fmenu.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fmenu.cpp b/src/fmenu.cpp index 57b45928..29214b44 100644 --- a/src/fmenu.cpp +++ b/src/fmenu.cpp @@ -614,7 +614,9 @@ void FMenu::draw() { drawMenuShadow(); 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 updateVTerm(true);