aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/org/apache')
-rw-r--r--src/java/org/apache/fop/fo/FONode.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/fo/FONode.java b/src/java/org/apache/fop/fo/FONode.java
index 16043c00e..c3927f9b6 100644
--- a/src/java/org/apache/fop/fo/FONode.java
+++ b/src/java/org/apache/fop/fo/FONode.java
@@ -294,7 +294,11 @@ public abstract class FONode {
* @return String opening error text
*/
protected static String errorText(Locator loc) {
- return "Error(" + loc.getLineNumber() + "/" + loc.getColumnNumber() + "): ";
+ if (loc == null) {
+ return "Error(Unknown location): ";
+ } else {
+ return "Error(" + loc.getLineNumber() + "/" + loc.getColumnNumber() + "): ";
+ }
}
/**