diff options
author | Andreas Abraham <andreas.abraham@egiz.gv.at> | 2020-11-19 16:33:07 +0100 |
---|---|---|
committer | Andreas Abraham <andreas.abraham@egiz.gv.at> | 2020-11-19 16:33:07 +0100 |
commit | 814c7e0b71985621b2d307fa52bb35de7886946b (patch) | |
tree | 7a62872ae5ad03ae55a48aa542b3dd18b6ebc216 /pdf-over-gui/src/main/java | |
parent | 402805f8485a926a8efd8d01de9af98824941140 (diff) | |
download | pdf-over-814c7e0b71985621b2d307fa52bb35de7886946b.tar.gz pdf-over-814c7e0b71985621b2d307fa52bb35de7886946b.tar.bz2 pdf-over-814c7e0b71985621b2d307fa52bb35de7886946b.zip |
Small fix when postfix is null set default value
Diffstat (limited to 'pdf-over-gui/src/main/java')
-rw-r--r-- | pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigProviderImpl.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigProviderImpl.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigProviderImpl.java index 9dc19be4..0a507b19 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigProviderImpl.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigProviderImpl.java @@ -114,7 +114,13 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, setDefaultOutputFolder(config .getProperty(Constants.CFG_OUTPUT_FOLDER)); - setSaveFilePostFix(config.getProperty(Constants.CFG_POSTFIX)); + String postFix = config.getProperty(Constants.CFG_POSTFIX); + if (postFix == null){ + setSaveFilePostFix(Constants.DEFAULT_POSTFIX); + } else { + setSaveFilePostFix(postFix); + } + String localeString = config.getProperty(Constants.CFG_LOCALE); |