]> gitweb.fperrin.net Git - GpsPrune.git/blobdiff - tim/prune/save/ExifSaver.java
Version 13, August 2011
[GpsPrune.git] / tim / prune / save / ExifSaver.java
index bc8d220c41ac7559f7695e107272bd04b71f49a1..020ef537ff4fa3f936c6e23cc1032bd0abb360ca 100644 (file)
@@ -296,6 +296,10 @@ public class ExifSaver implements Runnable
         */
        private boolean savePhoto(Photo inPhoto, boolean inOverwriteFlag, boolean inForceFlag)
        {
+               // If photos don't have a file, then can't save them
+               if (inPhoto.getFile() == null) {
+                       return false;
+               }
                // Check whether photo file still exists
                if (!inPhoto.getFile().exists())
                {