aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorpdanner <pdanner@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2011-01-27 15:10:07 +0000
committerpdanner <pdanner@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2011-01-27 15:10:07 +0000
commit434f6df789ee03e26bd55d0c5920e3864cb430b4 (patch)
treefeb720425a7e06946f0122b04adf6d2cefb94528 /src/main/java
parentf5bfbbd6c60d2827a961735d94d435ee24cc8f11 (diff)
downloadpdf-as-3-434f6df789ee03e26bd55d0c5920e3864cb430b4.tar.gz
pdf-as-3-434f6df789ee03e26bd55d0c5920e3864cb430b4.tar.bz2
pdf-as-3-434f6df789ee03e26bd55d0c5920e3864cb430b4.zip
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@733 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'src/main/java')
-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()};