diff --git a/caps/src/nsPrincipalArray.cpp b/caps/src/nsPrincipalArray.cpp index 670ef45febe..da28a7a6d3b 100644 --- a/caps/src/nsPrincipalArray.cpp +++ b/caps/src/nsPrincipalArray.cpp @@ -10,8 +10,9 @@ nsPrincipalArray::nsPrincipalArray(void) nsPrincipalArray::nsPrincipalArray(PRUint32 count) { - nsVector * itsArray = new nsVector(); - itsArray->SetSize(count, 1); + itsArray = new nsVector(); + if(itsArray) + itsArray->SetSize(count, 1); } nsPrincipalArray::~nsPrincipalArray(void) {