Author: czeidler Date: 2010-09-19 23:41:53 +0200 (Sun, 19 Sep 2010) New Revision: 38730 Changeset: http://dev.haiku-os.org/changeset/38730 Modified: haiku/trunk/src/add-ons/decorators/SATDecorator/SATGroup.cpp Log: Better check if the area exist. Modified: haiku/trunk/src/add-ons/decorators/SATDecorator/SATGroup.cpp =================================================================== --- haiku/trunk/src/add-ons/decorators/SATDecorator/SATGroup.cpp 2010-09-19 21:08:47 UTC (rev 38729) +++ haiku/trunk/src/add-ons/decorators/SATDecorator/SATGroup.cpp 2010-09-19 21:41:53 UTC (rev 38730) @@ -862,7 +862,8 @@ SATGroup::_SplitGroupIfNecessary(SATWindow* removedWindow) { // if there are windows stacked in the area we don't need to split - if (removedWindow->GetWindowArea()->WindowList().CountItems() > 1) + WindowArea* area = removedWindow->GetWindowArea(); + if (!area || area->WindowList().CountItems() > 1) return; WindowAreaList neighbourWindows;