From e746d28750d231a57494f9cffe648087b6f4d37f Mon Sep 17 00:00:00 2001 From: louis Date: Wed, 10 Dec 2014 19:27:20 +0100 Subject: [PATCH] fixed possible Nullpointer access in displaymenurootview --- HISTORY | 3 ++- views/displaymenurootview.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/HISTORY b/HISTORY index c6aee4e..bdf1086 100644 --- a/HISTORY +++ b/HISTORY @@ -110,4 +110,5 @@ Version 0.0.8 Version 0.1.0 -- fixed display of color buttons in detailed views \ No newline at end of file +- fixed display of color buttons in detailed views +- fixed possible Nullpointer access in displaymenurootview \ No newline at end of file diff --git a/views/displaymenurootview.c b/views/displaymenurootview.c index 1797332..47de424 100644 --- a/views/displaymenurootview.c +++ b/views/displaymenurootview.c @@ -390,6 +390,8 @@ cFont *cDisplayMenuRootView::GetTextAreaFont(void) { void cDisplayMenuRootView::Render(void) { + if (!view) + return; if (!view->DrawBackground()) { if (!defaultBackgroundDrawn) { defaultBackgroundDrawn = true;