mickleness / pumpernickel

This Java project includes classes related to desktop applications, Swing, performance, image processing, data structures, and other misc topics.
https://mickleness.github.io/pumpernickel/
MIT License
66 stars 12 forks source link

ImageLoaderDemo: throws exception for missing sample image in temp dir #97

Closed mickleness closed 2 years ago

mickleness commented 2 years ago

The ImageLoaderDemo will populate a sample image in a temp directory if no other image is specified.

And that image is purged when the app exits.

And when the app reopens: we consult the preferences and restore the last known file path.

... and then we get an error, because that file path doesn't point to a valid file anymore.

The expected behavior is to discard the last used file path if it no longer points to a valid file.