# SVG file throwing nullPointerException

**URL:** <https://discourse.processing.org/t/svg-file-throwing-nullpointerexception/18466>\
**Category:** Coding Questions\
**Created:** [March 6, 2020, 11:38pm UTC](https://discourse.processing.org/t/svg-file-throwing-nullpointerexception/18466 "2020-03-06T23:38:53Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [March 10, 2020, 6:59pm UTC](https://discourse.processing.org/t/svg-file-throwing-nullpointerexception/18466/5 "2020-03-10T18:59:05Z")

</div>

> [@martinh](#):
>
> Actuator was cause a style error, but I found what they needed to do to fix that error with Adobe Illustrator. This problem I can’t locate a fix for.

I don’t understand what this means. It was causing an error, but they fixed it, but they didn’t?

The SVG file spec is massive. loadShape only has limited support for it. Your SVG could contain any one of dozens of things that loadShape doesn’t support. You could try converting it to a rastor format, resaving it using SVG1.1 to force down the feature set, sharing the actual details of your error on this thread, and / or just hacking away parts of your svg until it starts working to narrow down the problem. Unfortunately there is no one reason why SVGs fail.

See also: [Get new size of PShape after transform (shear)? - #2 by snaders](https://discourse.processing.org/t/get-new-size-of-pshape-after-transform-shear/18184/2)

---

_[View the full topic](https://discourse.processing.org/t/svg-file-throwing-nullpointerexception/18466)._
