You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ce...@apache.org on 2015/04/20 20:26:39 UTC
svn commit: r1674958 - in /poi/trunk:
src/ooxml/java/org/apache/poi/xslf/usermodel/RenderableShape.java
test-data/slideshow/ae.ac.uaeu.faculty_nafaachbili_GeomLec1.pptx
Author: centic
Date: Mon Apr 20 18:26:39 2015
New Revision: 1674958
URL: http://svn.apache.org/r1674958
Log:
Avoid possible NullPointerException seen with some powerpoint files
Added:
poi/trunk/test-data/slideshow/ae.ac.uaeu.faculty_nafaachbili_GeomLec1.pptx
Modified:
poi/trunk/src/ooxml/java/org/apache/poi/xslf/usermodel/RenderableShape.java
Modified: poi/trunk/src/ooxml/java/org/apache/poi/xslf/usermodel/RenderableShape.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xslf/usermodel/RenderableShape.java?rev=1674958&r1=1674957&r2=1674958&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xslf/usermodel/RenderableShape.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xslf/usermodel/RenderableShape.java Mon Apr 20 18:26:39 2015
@@ -576,7 +576,7 @@ class RenderableShape {
public Guide getAdjustValue(String name) {
CTPresetGeometry2D prst = _shape.getSpPr().getPrstGeom();
- if (prst.isSetAvLst()) {
+ if (prst != null && prst.isSetAvLst()) {
for (CTGeomGuide g : prst.getAvLst().getGdArray()) {
if (g.getName().equals(name)) {
return new Guide(g);
Added: poi/trunk/test-data/slideshow/ae.ac.uaeu.faculty_nafaachbili_GeomLec1.pptx
URL: http://svn.apache.org/viewvc/poi/trunk/test-data/slideshow/ae.ac.uaeu.faculty_nafaachbili_GeomLec1.pptx?rev=1674958&view=auto
==============================================================================
Binary files poi/trunk/test-data/slideshow/ae.ac.uaeu.faculty_nafaachbili_GeomLec1.pptx (added) and poi/trunk/test-data/slideshow/ae.ac.uaeu.faculty_nafaachbili_GeomLec1.pptx Mon Apr 20 18:26:39 2015 differ
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org