Kaydet (Commit) 7cdb4653 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1326425 Dereference null return value

Change-Id: I034a110457d1fa20c392e6660874077def125edd
üst f359cbc6
......@@ -469,15 +469,20 @@ public abstract class SxcDocumentSerializer implements OfficeConstants,
Debug.log(Debug.TRACE, "traverseColumn() default-cell-style : " + cellStyleName);
}
CellStyle cellStyle = null;
if(cellStyleName.equalsIgnoreCase("Default") || cellStyleName.length()==0) {
Debug.log(Debug.TRACE, "No default cell Style Attribute was found");
} else {
CellStyle cellStyle = (CellStyle)styleCat.lookup(cellStyleName,
cellStyle = (CellStyle)styleCat.lookup(cellStyleName,
SxcConstants.TABLE_CELL_STYLE_FAMILY, null,
CellStyle.class);
}
if (cellStyle != null) {
Format defaultFmt = new Format(cellStyle.getFormat());
col.setFormat(defaultFmt);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment