aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/gv
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/gv')
-rw-r--r--src/main/java/at/gv/egiz/pdfas/web/helper/TempDirHelper.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/at/gv/egiz/pdfas/web/helper/TempDirHelper.java b/src/main/java/at/gv/egiz/pdfas/web/helper/TempDirHelper.java
index c16b96f..3775776 100644
--- a/src/main/java/at/gv/egiz/pdfas/web/helper/TempDirHelper.java
+++ b/src/main/java/at/gv/egiz/pdfas/web/helper/TempDirHelper.java
@@ -272,6 +272,10 @@ public class TempDirHelper
*/
public static String extractFileNameSuffix (String file)
{
+ if (file == null || file.trim().length() == 0)
+ {
+ return "nofilename";
+ }
File f = new File(file);
return f.getName();
}