incubator-odf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeroen Oomkes (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ODFTOOLKIT-370) Adding a new SVG image causes null pointer exception
Date Fri, 02 Aug 2013 08:11:48 GMT
Jeroen Oomkes created ODFTOOLKIT-370:
----------------------------------------

             Summary: Adding a new SVG image causes null pointer exception
                 Key: ODFTOOLKIT-370
                 URL: https://issues.apache.org/jira/browse/ODFTOOLKIT-370
             Project: ODF Toolkit
          Issue Type: Bug
          Components: simple api
    Affects Versions: 0.6.1-incubating
         Environment: Arch Linux Matlab 2013a Java 1.6.0_17-b04 
            Reporter: Jeroen Oomkes


I'm using this toolkit from Matlab, which is the reason for the non-Java syntax: 

FigurePath = File('test.svg'); 
FigurePath = FigurePath.toURI; 
p = outputOdt.addParagraph(''); 
img = Image.newImage(p, FigurePath);

When I try this with a PNG image it works perfectly fine, however as stated above SVG causes
a crash:

29-jul-2013 17:20:38 org.odftoolkit.simple.draw.Image newImage
SEVERE: null
java.lang.NullPointerException
at org.odftoolkit.simple.draw.Image.configureInsertedImage(Image.java:282)
at org.odftoolkit.simple.draw.Image.newImage(Image.java:184)

In the release notes it was stated that this problem was fixed. However I've got the impression
unfortunately that it is still an issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message