While saving to a file, the error "NullPointerException" occurs. It isn't possible to save any file in yEd.

Troubleshooting

Summary

The exception "NullPointerException" occurs on Windows XP when you try to save a file. What can you do?

This article was written for an older version. It is only online as a reference for customers using this old version. The information it contains is probably out of date.

The latest information can be found in the yFiles documentation

Description

Since yEd 3.5, the work-around mentioned below is included and the error should not appear anymore.

yEd might not be able to save your diagram. Instead an exception occurs with this stack trace:

stacktrace: java.lang.NullPointerException
    at javax.swing.ImageIcon.<init>(Unknown Source)
    at javax.swing.ImageIcon.<init>(Unknown Source)
    at sun.swing.WindowsPlacesBar.<init>(Unknown Source)
    at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.updateUseShellFolder(Unknown Source)
    at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.installComponents(Unknown Source)
    at javax.swing.plaf.basic.BasicFileChooserUI.installUI(Unknown Source)
    at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.installUI(Unknown Source) 

This may happen if you have removed or replaced some system desktop icons on Windows XP. To work around this problem, try to follow the advice given on these pages: http://www.minq.se/forum/message.jspa?messageID=9662 and http://www.auctober.de/mantis/view.php?id=86&PHPSESSID=905a3cc248d2a42b6c1c8c3d264bb3d9"

Categories this article belongs to:
yEd
Applies to:
yEd: 3.3, 3.4
Keywords:
filechooser - save - exception - trouble