aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGlenn Adams <gadams@apache.org>2012-05-17 01:22:08 +0000
committerGlenn Adams <gadams@apache.org>2012-05-17 01:22:08 +0000
commitc251ff4844177a7f2e0d77a55625acfb758f343f (patch)
tree5770c6759393680844e791fea37008db5a867ea2 /src
parentaab9b3159b8414141c0bcd2fb97cb3a379eb0a2a (diff)
downloadxmlgraphics-fop-c251ff4844177a7f2e0d77a55625acfb758f343f.tar.gz
xmlgraphics-fop-c251ff4844177a7f2e0d77a55625acfb758f343f.zip
Bugzilla #53248: Fix exception thrown from use of -print option in CLI. Submitted by Luis Bernardo.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1339441 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/java/org/apache/fop/cli/CommandLineOptions.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/cli/CommandLineOptions.java b/src/java/org/apache/fop/cli/CommandLineOptions.java
index bfcdb163e..08c4cfb68 100644
--- a/src/java/org/apache/fop/cli/CommandLineOptions.java
+++ b/src/java/org/apache/fop/cli/CommandLineOptions.java
@@ -588,7 +588,7 @@ public class CommandLineOptions {
private int parsePrintOutputOption(String[] args, int i) throws FOPException {
setOutputMode(MimeConstants.MIME_FOP_PRINT);
- if ((i + 1 <= args.length)
+ if ((i + 1 < args.length)
&& (args[i + 1].charAt(0) != '-')) {
String arg = args[i + 1];
String[] parts = arg.split(",");