Skip to content

Commit

Permalink
Need to load vecs() before using
Browse files Browse the repository at this point in the history
  • Loading branch information
cliffclick committed Nov 12, 2014
1 parent 9417788 commit 75053e5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/water/fvec/Frame.java
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,9 @@ public int find( String name ) {
}

public int find( Vec vec ) {
for( int i=0; i<_vecs.length; i++ )
if( vec.equals(_vecs[i]) )
Vec[] vecs = vecs();
for( int i=0; i<vecs.length; i++ )
if( vec.equals(vecs[i]) )
return i;
return -1;
}
Expand Down

0 comments on commit 75053e5

Please sign in to comment.