aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornetconomy <netconomy@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2007-11-22 08:28:53 +0000
committernetconomy <netconomy@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2007-11-22 08:28:53 +0000
commit0a1b9548daabd8ed5b89b4e8dd8dfbd388d5d9c1 (patch)
tree323f573636a71c8a770504cc21c14bcf2cc05bef
parent4b8c31051f199a77e795752d99510ca6ad8ea793 (diff)
downloadpdf-as-3-REL-3.0.2@923.tar.gz
pdf-as-3-REL-3.0.2@923.tar.bz2
pdf-as-3-REL-3.0.2@923.zip
fixed the "NullPtrEx Freie Texteingabe" bugREL-3.0.2@923
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@228 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
-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();
}