aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/utils
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-05-15 10:11:39 +0200
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-05-15 10:11:39 +0200
commit8b6eeda673ab545dadf6ffedde1654f6a0604428 (patch)
treef29fe23d753259bd83e48af32f9852720064c401 /pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/utils
parent68e996fe190e6ba9e7aa46cf81bae8e762f53256 (diff)
downloadpdf-as-4-8b6eeda673ab545dadf6ffedde1654f6a0604428.tar.gz
pdf-as-4-8b6eeda673ab545dadf6ffedde1654f6a0604428.tar.bz2
pdf-as-4-8b6eeda673ab545dadf6ffedde1654f6a0604428.zip
TTF Fonts width fix, null value in signature block fix, Signature reason from config
Diffstat (limited to 'pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/utils')
-rw-r--r--pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/utils/StringUtils.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/utils/StringUtils.java b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/utils/StringUtils.java
index d0a9fee7..c110b93d 100644
--- a/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/utils/StringUtils.java
+++ b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/utils/StringUtils.java
@@ -62,6 +62,12 @@ public class StringUtils {
public static String convertStringToPDFFormat(String value)
throws UnsupportedEncodingException {
+
+ if(value == null) {
+ logger.warn("Trying to convert null string!");
+ return value;
+ }
+
byte[] replace_bytes = applyWinAnsiEncoding(value);
String restored_value = unapplyWinAnsiEncoding(replace_bytes);