Skip to content

Commit

Permalink
Missing condition to avoid generating ColInfo class.
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalohlava committed May 30, 2015
1 parent 87a5201 commit 220e2da
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/water/Model.java
Original file line number Diff line number Diff line change
Expand Up @@ -676,8 +676,10 @@ private SB toJavaDOMAINS( SB sb, SB fileContextSB ) {
if (dom != null) sb.p(colInfoClazz).p(".VALUES"); else sb.p("null");
if (i!=_domains.length-1) sb.p(',');
sb.nl();
fileContextSB.i().p("// The class representing column ").p(_names[i]).nl();
JCodeGen.toClassWithArray(fileContextSB, null, colInfoClazz, dom);
if (dom != null) {
fileContextSB.i().p("// The class representing column ").p(_names[i]).nl();
JCodeGen.toClassWithArray(fileContextSB, null, colInfoClazz, dom);
}
}
return sb.i().p("};").nl();
}
Expand Down

0 comments on commit 220e2da

Please sign in to comment.