diff --git a/src/main/java/hex/glm/GLM2.java b/src/main/java/hex/glm/GLM2.java index 1a5b3a6255..327883ea41 100644 --- a/src/main/java/hex/glm/GLM2.java +++ b/src/main/java/hex/glm/GLM2.java @@ -489,7 +489,7 @@ private double computeIntercept(DataInfo dinfo, double ymu, Vec offset, Vec resp for(int i = 0; i < names.length; ++i) m.put(names[i],i); int [] newMap = MemoryManager.malloc4(dom.length); - for(int i = 0; i < dom.length; ++i) { + for(int i = 0; i < map.length; ++i) { Integer I = m.get(dom[map[i]]); newMap[i] = I == null?-1:I; }