Skip to content

Commit 220e2da

Browse files
committed
Missing condition to avoid generating ColInfo class.
1 parent 87a5201 commit 220e2da

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/java/water/Model.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -676,8 +676,10 @@ private SB toJavaDOMAINS( SB sb, SB fileContextSB ) {
676676
if (dom != null) sb.p(colInfoClazz).p(".VALUES"); else sb.p("null");
677677
if (i!=_domains.length-1) sb.p(',');
678678
sb.nl();
679-
fileContextSB.i().p("// The class representing column ").p(_names[i]).nl();
680-
JCodeGen.toClassWithArray(fileContextSB, null, colInfoClazz, dom);
679+
if (dom != null) {
680+
fileContextSB.i().p("// The class representing column ").p(_names[i]).nl();
681+
JCodeGen.toClassWithArray(fileContextSB, null, colInfoClazz, dom);
682+
}
681683
}
682684
return sb.i().p("};").nl();
683685
}

0 commit comments

Comments
 (0)