poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r737248 - /poi/trunk/src/java/org/apache/poi/hssf/extractor/ExcelExtractor.java
Date Fri, 23 Jan 2009 23:34:22 GMT
Author: josh
Date: Fri Jan 23 23:34:22 2009
New Revision: 737248

URL: http://svn.apache.org/viewvc?rev=737248&view=rev
Log:
Follow-up fix for r737173 and r737238 (patch 46544) - filename arg was not properly parsed.

Modified:
    poi/trunk/src/java/org/apache/poi/hssf/extractor/ExcelExtractor.java

Modified: poi/trunk/src/java/org/apache/poi/hssf/extractor/ExcelExtractor.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/hssf/extractor/ExcelExtractor.java?rev=737248&r1=737247&r2=737248&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/hssf/extractor/ExcelExtractor.java (original)
+++ poi/trunk/src/java/org/apache/poi/hssf/extractor/ExcelExtractor.java Fri Jan 23 23:34:22
2009
@@ -89,10 +89,11 @@
 					break;
 				}
 				if ("-i".equals(arg)) {
-					arg = args[++i]; // step to next arg
-					if (i >= nArgs) {
+					 // step to next arg
+					if (++i >= nArgs) {
 						throw new CommandParseException("Expected filename after '-i'");
 					}
+					arg = args[i];
 					if (inputFile != null) {
 						throw new CommandParseException("Only one input file can be supplied");
 					}



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message