qt4: fix a segfault
[vlc.git] / modules / gui / qt4 / main_interface.cpp
index c7fe262..93e2a98 100644 (file)
@@ -403,7 +403,7 @@ void MainInterface::calculateInterfaceSize()
         width  = PREF_W - addSize.width();
         height = PREF_H - addSize.height();
     }
-    if( !dockPL->isFloating() )
+    if( !dockPL->isFloating() && dockPL->widget() )
     {
         width  += dockPL->widget()->width();
         height += dockPL->widget()->height();