compositor: guard null view() in getWindowFromSurface (#13255)
This commit is contained in:
parent
1bf410e1fc
commit
e80f705d76
1 changed files with 1 additions and 1 deletions
|
|
@ -1185,7 +1185,7 @@ PHLWINDOW CCompositor::getWindowFromSurface(SP<CWLSurfaceResource> pSurface) {
|
|||
|
||||
const auto VIEW = pSurface->m_hlSurface->view();
|
||||
|
||||
if (VIEW->type() != Desktop::View::VIEW_TYPE_WINDOW)
|
||||
if (!VIEW || VIEW->type() != Desktop::View::VIEW_TYPE_WINDOW)
|
||||
return nullptr;
|
||||
|
||||
return dynamicPointerCast<Desktop::View::CWindow>(VIEW);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue