lgtm warnings
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1841984 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f4aef7afca
commit
7c243f3d76
@ -372,8 +372,8 @@ public class XMLSlideShow extends POIXMLDocument
|
||||
}
|
||||
|
||||
if (!themeIndexList.isEmpty()) {
|
||||
Boolean found = false;
|
||||
for (Integer i = 1; i <= themeIndexList.size(); i++) {
|
||||
boolean found = false;
|
||||
for (int i = 1; i <= themeIndexList.size(); i++) {
|
||||
if (!themeIndexList.contains(i)) {
|
||||
found = true;
|
||||
themeIndex = i;
|
||||
|
@ -153,7 +153,7 @@ public class XSLFColor {
|
||||
colorRef = _phClr.getVal().toString();
|
||||
}
|
||||
// find referenced CTColor in the theme and convert it to java.awt.Color via a recursive call
|
||||
CTColor ctColor = theme.getCTColor(colorRef);
|
||||
CTColor ctColor = theme == null ? null : theme.getCTColor(colorRef);
|
||||
if(ctColor != null) {
|
||||
color = toColor(ctColor, null);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user