Skip to content

Commit

Permalink
0001738: Introduce a new columntransform type that returns both new a…
Browse files Browse the repository at this point in the history
…nd old data. use it for the copy transform
  • Loading branch information
chenson42 committed Jun 4, 2014
1 parent 780fbd5 commit 6cad0ea
Showing 1 changed file with 9 additions and 1 deletion.
Expand Up @@ -325,7 +325,15 @@ public CsvData buildTargetCsvData() {

public String[] getOldColumnValues() {
List<String> list = retrieve(targetOldValuesByIncludeOnType, false);
return list.toArray(new String[list.size()]);
boolean use = false;
for (String string : list) {
use |= string != null;
}
if (use) {
return list.toArray(new String[list.size()]);
} else {
return null;
}
}

}

0 comments on commit 6cad0ea

Please sign in to comment.