Skip to content

Commit

Permalink
Update Processor.java
Browse files Browse the repository at this point in the history
  • Loading branch information
rac021 authored Feb 10, 2017
1 parent 7d4522c commit 296679f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/org/inra/yedgen/processor/Processor.java
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,11 @@ public void accept(String line) {

if( column < 0 ) throw new IllegalArgumentException(" Column Num can't be negative ") ;

if( line.split(metaPatternManager.getCSV_SEPARATOR()).length < column + 1 )
if( line.split(metaPatternManager.getCSV_SEPARATOR()).length < column + 1 ) {
System.out.println(" + CSV Column size = " +
line.split(metaPatternManager.getCSV_SEPARATOR()).length) ;
throw new IllegalArgumentException(" Column [ " + column + " ] Does't exists ! ") ;
}

if( ! line.split(metaPatternManager.getCSV_SEPARATOR())[column].trim()
.replaceAll(" +", " ").equals(classe.trim())) {
Expand Down

0 comments on commit 296679f

Please sign in to comment.