diff options
author | Tobias Kellner <tobias.kellner@iaik.tugraz.at> | 2015-02-23 15:34:38 +0100 |
---|---|---|
committer | Tobias Kellner <tobias.kellner@iaik.tugraz.at> | 2015-02-23 15:34:38 +0100 |
commit | 5edda2d93aa78e22972ab3b6638393ff688d398f (patch) | |
tree | 2d44489b6d778a7cf41c7ce5329b2f898be1c188 /pdf-over-gui/src | |
parent | 96ea325cbce319f64ad548908e395825bbdca83f (diff) | |
download | pdf-over-5edda2d93aa78e22972ab3b6638393ff688d398f.tar.gz pdf-over-5edda2d93aa78e22972ab3b6638393ff688d398f.tar.bz2 pdf-over-5edda2d93aa78e22972ab3b6638393ff688d398f.zip |
Handle empty note config
Diffstat (limited to 'pdf-over-gui/src')
-rw-r--r-- | pdf-over-gui/src/main/java/at/asit/pdfover/gui/utils/SignaturePlaceholderCache.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/utils/SignaturePlaceholderCache.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/utils/SignaturePlaceholderCache.java index a468f0e2..87ce24ee 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/utils/SignaturePlaceholderCache.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/utils/SignaturePlaceholderCache.java @@ -67,13 +67,15 @@ public class SignaturePlaceholderCache { final String sigLangProp = "LANG"; //$NON-NLS-1$ final String sigEmblProp = "EMBL"; //$NON-NLS-1$ - final String sigNoteProp = "NOTE"; //$NON-NLS-1$ final String sigPdfAProp = "PDFA"; //$NON-NLS-1$ + final String sigNoteProp = "NOTE"; //$NON-NLS-1$ String sigLang = param.getSignatureLanguage(); String sigEmbl = (param.getEmblem() == null ? "" : param.getEmblem().getFileName()); //$NON-NLS-1$ - String sigNote = param.getProperty("SIG_NOTE"); //$NON-NLS-1$ String sigPdfA = param.getSignaturePdfACompat() ? Constants.TRUE : Constants.FALSE; + String sigNote = param.getProperty("SIG_NOTE"); //$NON-NLS-1$ + if (sigNote == null) + sigNote = ""; //$NON-NLS-1$ Properties sigProps = new Properties(); // compare cache, try to load if match @@ -93,7 +95,7 @@ public class SignaturePlaceholderCache { sigNote + "|" + sigProps.getProperty(sigNoteProp) + " - " + //$NON-NLS-1$ //$NON-NLS-2$ sigPdfA + "|" + sigProps.getProperty(sigPdfAProp) + ")"); //$NON-NLS-1$ //$NON-NLS-2$ } catch (Exception e) { - log.debug("Can't load signature Placeholder", e); //$NON-NLS-1$ + log.warn("Can't load signature Placeholder", e); //$NON-NLS-1$ } // create new cache |