aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/gv/egiz/pdfas/impl/api/PdfAsObject.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/gv/egiz/pdfas/impl/api/PdfAsObject.java b/src/main/java/at/gv/egiz/pdfas/impl/api/PdfAsObject.java
index 8b6bd5f..0640b97 100644
--- a/src/main/java/at/gv/egiz/pdfas/impl/api/PdfAsObject.java
+++ b/src/main/java/at/gv/egiz/pdfas/impl/api/PdfAsObject.java
@@ -659,7 +659,7 @@ public class PdfAsObject implements PdfAs
} else
pos = PosHelper.formTablePos(signParameters.getSignaturePositioning());
- if (!pos.isWauto() && pos.getWidth() < 150) {
+ if (pos != null && !pos.isWauto() && pos.getWidth() < 150) {
// very small, warn user
String msg = "The {0} for the signature ({1}) is very small. The signature block might not get placed correcty.";
String[] arguments = new String[]{ "given width", "" + pos.getWidth()};