From cf553aa457c2007e3a62812d164d34e7fedb1d9c Mon Sep 17 00:00:00 2001 From: "neil%parkwaycc.co.uk" Date: Wed, 6 Jun 2007 20:28:47 +0000 Subject: [PATCH] Bug 383236 Fix missing null-check from previous patch for bug 382746 r=Enn sr=bz --- layout/xul/base/src/nsSprocketLayout.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layout/xul/base/src/nsSprocketLayout.cpp b/layout/xul/base/src/nsSprocketLayout.cpp index f7bed51e801..daaaeda9fd5 100644 --- a/layout/xul/base/src/nsSprocketLayout.cpp +++ b/layout/xul/base/src/nsSprocketLayout.cpp @@ -452,7 +452,8 @@ nsSprocketLayout::Layout(nsIBox* aBox, nsBoxLayoutState& aState) { childComputedBoxSize = childComputedBoxSize->next; childBoxSize = childBoxSize->next; - child = child->GetNextBox(); + if (child) + child = child->GetNextBox(); count++; x = nextX; y = nextY;