Uploaded image for project: 'ODF Toolkit'
  1. ODF Toolkit
  2. ODFTOOLKIT-370

Adding a new SVG image causes null pointer exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.6.1-incubating
    • None
    • simple api
    • Arch Linux Matlab 2013a Java 1.6.0_17-b04

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            slartanski Jeroen Oomkes
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: