add null guard in XSSFComment
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1837012 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
51b4e33a62
commit
857f4a5ad4
@ -109,7 +109,7 @@ public class XSSFComment implements Comment {
|
|||||||
@Override
|
@Override
|
||||||
public boolean isVisible() {
|
public boolean isVisible() {
|
||||||
boolean visible = false;
|
boolean visible = false;
|
||||||
if(_vmlShape != null){
|
if(_vmlShape != null) {
|
||||||
String style = _vmlShape.getStyle();
|
String style = _vmlShape.getStyle();
|
||||||
visible = style != null && style.contains("visibility:visible");
|
visible = style != null && style.contains("visibility:visible");
|
||||||
}
|
}
|
||||||
@ -217,6 +217,9 @@ public class XSSFComment implements Comment {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ClientAnchor getClientAnchor() {
|
public ClientAnchor getClientAnchor() {
|
||||||
|
if(_vmlShape == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
String position = _vmlShape.getClientDataArray(0).getAnchorArray(0);
|
String position = _vmlShape.getClientDataArray(0).getAnchorArray(0);
|
||||||
int[] pos = new int[8];
|
int[] pos = new int[8];
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user