summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--oox/source/drawingml/table/tablecell.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/oox/source/drawingml/table/tablecell.cxx b/oox/source/drawingml/table/tablecell.cxx
index 40533259b9b3..f3810f1e2e85 100644
--- a/oox/source/drawingml/table/tablecell.cxx
+++ b/oox/source/drawingml/table/tablecell.cxx
@@ -361,8 +361,13 @@ void TableCell::pushToXCell( const ::oox::core::XmlFilterBase& rFilterBase, ::oo
else if (rBackgroundFillStyle.mnThemedIdx != 0)
if (const Theme* pTheme = rFilterBase.getCurrentTheme())
{
- aBgColor = pTheme->getFillStyle(rBackgroundFillStyle.mnThemedIdx)->getBestSolidColor();
- nPhClr = rBackgroundFillStyle.maPhClr.getColor(rFilterBase.getGraphicHelper());
+ FillProperties const*const pStyle(
+ pTheme->getFillStyle(rBackgroundFillStyle.mnThemedIdx));
+ if (pStyle)
+ {
+ aBgColor = pStyle->getBestSolidColor();
+ nPhClr = rBackgroundFillStyle.maPhClr.getColor(rFilterBase.getGraphicHelper());
+ }
}
if (aBgColor.isUsed())
{