From 434f6df789ee03e26bd55d0c5920e3864cb430b4 Mon Sep 17 00:00:00 2001 From: pdanner Date: Thu, 27 Jan 2011 15:10:07 +0000 Subject: git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@733 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- src/main/java/at/gv/egiz/pdfas/impl/api/PdfAsObject.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()}; -- cgit v1.2.3