Commits

Anonymous committed 5f7832f

accfixes2: just a NULL pointer check

  • Participants
  • Parent commits 3b41dcd

Comments (0)

Files changed (1)

cui/source/tabpages/backgrnd.cxx

 			if ( rSet.GetItemState( nWhich, FALSE ) >= SFX_ITEM_AVAILABLE )
             {
 				pBgdAttr = (const SvxBrushItem*)&( rSet.Get( nWhich ) );
-			    pParaBck_Impl->pParaBrush = new SvxBrushItem(*pBgdAttr);
-            }
+				if ( pBgdAttr )
+					pParaBck_Impl->pParaBrush = new SvxBrushItem(*pBgdAttr);
+				else
+					pParaBck_Impl->pParaBrush = NULL;
+			}			
 
 			nWhich = GetWhich( SID_ATTR_BRUSH_CHAR );
 			SfxItemState eState = rSet.GetItemState( nWhich, TRUE );