diff options
| -rw-r--r-- | HISTORY | 1 | ||||
| -rw-r--r-- | views/displaymenurootview.c | 4 |
2 files changed, 5 insertions, 0 deletions
@@ -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(); |
