r67923 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r67922‎ | r67923 | r67924 >
Date:21:21, 12 June 2010
Author:daniel
Status:deferred
Tags:
Comment:
param index check was off by one
Modified paths:
  • /trunk/WikiWord/WikiWordBuilder/src/main/java/de/brightbyte/wikiword/extract/StreamProcessorApp.java (modified) (history)

Diff [purge]

Index: trunk/WikiWord/WikiWordBuilder/src/main/java/de/brightbyte/wikiword/extract/StreamProcessorApp.java
@@ -38,7 +38,7 @@
3939
4040 protected File getOutputFile(int paramIndex) {
4141 if (outputFile==null) {
42 - if (args.getParameterCount()>=paramIndex) {
 42+ if (args.getParameterCount()>paramIndex) {
4343 String f = args.getParameter(paramIndex);
4444 if (!f.equals("-")) outputFile = new File(f);
4545 }
@@ -48,7 +48,7 @@
4949
5050 protected String getInputPath(int paramIndex) {
5151 if (inputPath==null) {
52 - if (args.getParameterCount()>=paramIndex) {
 52+ if (args.getParameterCount()>paramIndex) {
5353 inputPath = args.getParameter(paramIndex);
5454 }
5555 }

Status & tagging log