mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +02:00
avoid null pointer use
This commit is contained in:
@@ -248,10 +248,10 @@ int CLuaInstCCWindow::CCWindowPaintHeader(lua_State *L)
|
||||
if (!D) return 0;
|
||||
|
||||
CComponentsHeader* header = D->w->getHeaderObject();
|
||||
if (header)
|
||||
if (header){
|
||||
D->w->showHeader();
|
||||
header->paint();
|
||||
|
||||
header->paint();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user