diff --git a/HISTORY b/HISTORY index 229a61f..a9bcac2 100644 --- a/HISTORY +++ b/HISTORY @@ -139,3 +139,4 @@ Version 0.1.1 Version 0.1.2 - display only active remote timers in main menu +- fixed two possible null pointer accesses in displaymenurootview diff --git a/views/displaymenurootview.c b/views/displaymenurootview.c index 556e19a..59910c1 100644 --- a/views/displaymenurootview.c +++ b/views/displaymenurootview.c @@ -434,6 +434,8 @@ void cDisplayMenuRootView::RenderMenuScrollBar(int Total, int Offset) { } bool cDisplayMenuRootView::RenderDynamicElements(void) { + if (!view) + return false; bool updated = false; if (view->DrawTime()) { updated = true; @@ -606,6 +608,8 @@ void cDisplayMenuRootView::DrawMessage(eMessageType type, const char *text) { } void cDisplayMenuRootView::Action(void) { + if (!view) + return; SetInitFinished(); Render(); view->Start();