diff options
author | Glen Mazza <gmazza@apache.org> | 2003-12-28 16:13:10 +0000 |
---|---|---|
committer | Glen Mazza <gmazza@apache.org> | 2003-12-28 16:13:10 +0000 |
commit | 9a9cc2318e78c79a0ddb9dbeeb56f2bd85b10dde (patch) | |
tree | b882d855979688ff6ec6d15e36c9a286dd935660 /src/java/org/apache/fop | |
parent | 75c5a4c1cdb5eea469d82660a31d7fdb90a4333d (diff) | |
download | xmlgraphics-fop-9a9cc2318e78c79a0ddb9dbeeb56f2bd85b10dde.tar.gz xmlgraphics-fop-9a9cc2318e78c79a0ddb9dbeeb56f2bd85b10dde.zip |
Minor patch for fixing NPE error when Locator not available--submitted by
Finn Bock.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197071 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop')
-rw-r--r-- | src/java/org/apache/fop/fo/FObj.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/fo/FObj.java b/src/java/org/apache/fop/fo/FObj.java index d2aab998d..172c5bf99 100644 --- a/src/java/org/apache/fop/fo/FObj.java +++ b/src/java/org/apache/fop/fo/FObj.java @@ -132,9 +132,11 @@ public class FObj extends FONode implements Constants { } public void setLocation(Locator locator) { - line = locator.getLineNumber(); - column = locator.getColumnNumber(); - systemId = locator.getSystemId(); + if (locator != null) { + line = locator.getLineNumber(); + column = locator.getColumnNumber(); + systemId = locator.getSystemId(); + } } /** |