Skip to content

Commit

Permalink
Fix NPE if looking at DRF model before any trees
Browse files Browse the repository at this point in the history
  • Loading branch information
cliffclick committed Nov 21, 2013
1 parent 24f0018 commit 0530904
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion .classpath
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,5 @@
<classpathentry kind="lib" path="lib/jogamp/jocl.jar" sourcepath="lib/jogamp/jocl-sources.jar"/>
<classpathentry kind="lib" path="lib/jogamp/gluegen-rt-natives-linux-amd64.jar"/>
<classpathentry kind="lib" path="lib/jogamp/gluegen-rt.jar" sourcepath="lib/jogamp/gluegen-rt-sources.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/python) interpreter library"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
1 change: 1 addition & 0 deletions src/main/java/hex/gbm/DTree.java
Original file line number Diff line number Diff line change
Expand Up @@ -815,6 +815,7 @@ StringBuilder toString(final String res, CompressedTree ct, final StringBuilder
}

public void toJavaHtml( StringBuilder sb ) {
if( treeStats == null ) return; // No trees yet
sb.append("<br /><br /><div class=\"pull-right\"><a href=\"#\" onclick=\'$(\"#javaModel\").toggleClass(\"hide\");\'" +
"class=\'btn btn-inverse btn-mini\'>Java Model</a></div><br /><div class=\"hide\" id=\"javaModel\">" +
"<pre style=\"overflow-y:scroll;\"><code class=\"language-java\">");
Expand Down

0 comments on commit 0530904

Please sign in to comment.