X-Git-Url: http://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=tim%2Fprune%2Fsave%2FExifSaver.java;h=020ef537ff4fa3f936c6e23cc1032bd0abb360ca;hp=bc8d220c41ac7559f7695e107272bd04b71f49a1;hb=649c5da6ee1bbc590699e11a92316ece2ea8512d;hpb=eebbb64b5d63f9eea43a0dff908c30361a376768 diff --git a/tim/prune/save/ExifSaver.java b/tim/prune/save/ExifSaver.java index bc8d220..020ef53 100644 --- a/tim/prune/save/ExifSaver.java +++ b/tim/prune/save/ExifSaver.java @@ -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()) {