fix potential 0 deref bug 333351 r/sr=roc

This commit is contained in:
bmlk@gmx.de
2006-04-14 16:21:21 +00:00
parent 082609e293
commit 6ee0aa31aa

View File

@@ -1140,6 +1140,7 @@ BasicTableLayoutStrategy::AssignNonPctColumnWidths(nscoord aMax
nscoord maxPropTotal = 0;
for (colX = 0; colX < numEffCols; colX++) {
nsTableColFrame* colFrame = mTableFrame->GetColFrame(colX);
if (!colFrame) continue;
nscoord rawProp = colFrame->GetWidth(MIN_PRO);
if (rawProp > 0) {
nscoord desWidth = colFrame->GetDesWidth();