fixed two possible null pointer accesses in displaymenurootview

This commit is contained in:
louis 2015-01-07 17:29:58 +01:00
parent 5d83b13943
commit 85d3f0efbd
2 changed files with 5 additions and 0 deletions

View File

@ -139,3 +139,4 @@ Version 0.1.1
Version 0.1.2 Version 0.1.2
- display only active remote timers in main menu - display only active remote timers in main menu
- fixed two possible null pointer accesses in displaymenurootview

View File

@ -434,6 +434,8 @@ void cDisplayMenuRootView::RenderMenuScrollBar(int Total, int Offset) {
} }
bool cDisplayMenuRootView::RenderDynamicElements(void) { bool cDisplayMenuRootView::RenderDynamicElements(void) {
if (!view)
return false;
bool updated = false; bool updated = false;
if (view->DrawTime()) { if (view->DrawTime()) {
updated = true; updated = true;
@ -606,6 +608,8 @@ void cDisplayMenuRootView::DrawMessage(eMessageType type, const char *text) {
} }
void cDisplayMenuRootView::Action(void) { void cDisplayMenuRootView::Action(void) {
if (!view)
return;
SetInitFinished(); SetInitFinished();
Render(); Render();
view->Start(); view->Start();