# SVG Import works in 7.9.6, but not 8.0.12

**URL:** <https://forum.inductiveautomation.com/t/svg-import-works-in-7-9-6-but-not-8-0-12/36398>\
**Category:** Ignition\
**Tags:** ignition79, ignition80, vision\
**Created:** [July 6, 2020, 5:14pm UTC](https://forum.inductiveautomation.com/t/svg-import-works-in-7-9-6-but-not-8-0-12/36398 "2020-07-06T17:14:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kissamcorrina](https://avatars.discourse-cdn.com/v4/letter/k/ba9def/32.png) [@kissamcorrina](https://forum.inductiveautomation.com/u/kissamcorrina)\
**Post date:** [July 6, 2020, 5:14pm UTC](https://forum.inductiveautomation.com/t/svg-import-works-in-7-9-6-but-not-8-0-12/36398/1 "2020-07-06T17:14:30Z")

</div>

I can successfully drag & drop an SVG into an Ignition designer version 7.9.6, but I get a NullPointerException with an Ignition designer version 8.0.12 using the Vision module.

I’m using Windows 10 and the same SVG for both designers.

Here is the error:

[AWT-EventQueue-0] ERROR com.inductiveautomation.ignition.client.util.gui.ErrorUtil - Error creating shapes.  
java.lang.NullPointerException: null  
at com.inductiveautomation.factorypmi.designer.workspace.DropHandler$SvgImporter.run(DropHandler.java:366)  
at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source)  
at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)  
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)  
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)  
at java.base/java.security.AccessController.doPrivileged(Native Method)  
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)  
at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)  
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)  
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)  
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)  
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)  
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)  
at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)

Is the 8 server missing an SVG handler? None of the SVGs that work on the 7.9 server will show on the 8 server.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [July 6, 2020, 5:21pm UTC](https://forum.inductiveautomation.com/t/svg-import-works-in-7-9-6-but-not-8-0-12/36398/2 "2020-07-06T17:21:29Z")

</div>

Can you upload or attach to this post one of the SVGs that isn’t working?

---

<div class="post-metadata">

**Author:** ![kissamcorrina](https://avatars.discourse-cdn.com/v4/letter/k/ba9def/32.png) [@kissamcorrina](https://forum.inductiveautomation.com/u/kissamcorrina)\
**Post date:** [July 6, 2020, 6:37pm UTC](https://forum.inductiveautomation.com/t/svg-import-works-in-7-9-6-but-not-8-0-12/36398/3 "2020-07-06T18:37:14Z")

</div>

I can't post the exact file due to copyrights, but I can give the outline:

> \<svg xmlns="[SVG namespace](http://www.w3.org/2000/svg)" width="#" height="#" viewBox="# # # #" shape-rendering="geometricPrecision"\>  
> \<defs\>  
> \<style\>  
> g {  
> display: none;  
> }  
> g:target {  
> display: inline;  
> }  
> \</style\>  
> \</defs\>  
> \<g id="part1" fill="none" fill-rule="nonzero"\>  
> \<path fill="#color" d="etc"/\>  
> \<path fill="#color" d="etc"/\>  
> \</g\>  
> \<g id="part2" fill="none" fill-rule="nonzero"\>  
> \<path fill="#color" d="etc"/\>  
> \<path fill="#color" d="etc"/\>  
> \</g\>  
> \</svg\>

Actually some SVGs are working on the 8.0 designer, but the ones using "\<defs\>\<style\>" work on 7.9 designer and not 8.0 designer. Not sure if this is related. Any help is appreciated!
