diff options
author | netconomy <netconomy@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2007-11-22 08:28:53 +0000 |
---|---|---|
committer | netconomy <netconomy@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2007-11-22 08:28:53 +0000 |
commit | 0a1b9548daabd8ed5b89b4e8dd8dfbd388d5d9c1 (patch) | |
tree | 323f573636a71c8a770504cc21c14bcf2cc05bef | |
parent | 4b8c31051f199a77e795752d99510ca6ad8ea793 (diff) | |
download | pdf-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.java | 4 |
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();
}
|