summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at/asit/pdfover/gui/utils
diff options
context:
space:
mode:
authorJakob Heher <jakob.heher@iaik.tugraz.at>2022-10-06 10:11:35 +0200
committerJakob Heher <jakob.heher@iaik.tugraz.at>2022-10-06 10:11:35 +0200
commit434ad00d88ce24785b9d9edbcd03ffa562fd8a4e (patch)
treed68c5a06bf49ca8bff6fba48ab6ef068c4ad4804 /pdf-over-gui/src/main/java/at/asit/pdfover/gui/utils
parente9a7e90fda934dd5d053127470d0b849b1b8fc4b (diff)
downloadpdf-over-434ad00d88ce24785b9d9edbcd03ffa562fd8a4e.tar.gz
pdf-over-434ad00d88ce24785b9d9edbcd03ffa562fd8a4e.tar.bz2
pdf-over-434ad00d88ce24785b9d9edbcd03ffa562fd8a4e.zip
sanitizing NULLable config values
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/utils')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/utils/LocaleSerializer.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/utils/LocaleSerializer.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/utils/LocaleSerializer.java
index 18d6e8c1..5d90ae6f 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/utils/LocaleSerializer.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/utils/LocaleSerializer.java
@@ -18,6 +18,10 @@ package at.asit.pdfover.gui.utils;
// Imports
import java.util.Locale;
+import javax.annotation.Nonnull;
+
+import at.asit.pdfover.commons.Constants;
+
/**
*
*/
@@ -49,7 +53,7 @@ public class LocaleSerializer {
* @param locale the locale
* @return the parsable string
*/
- public static String getParsableString(Locale locale) {
- return locale.toString();
+ public static @Nonnull String getParsableString(Locale locale) {
+ return Constants.ISNOTNULL(locale.toString());
}
}