package water.api;

import com.google.gson.JsonObject;

import hex.drf.DRF.DRFModel;
import water.*;
import water.api.RequestBuilders.Response;

public class DRFProgressPage extends Progress2 {
  /** Return {@link Response} for finished job. */
  @Override protected Response jobDone(final Job job, final Key dst) {
    JsonObject args = new JsonObject();
    args.addProperty(MODEL_KEY, job.dest().toString());
    return DRFModelView.redirect(this, job.dest());
  }

  public static Response redirect(Request req, Key jobkey, Key dest) {
    return new Response(Response.Status.redirect, req, -1, -1, "DRFProgressPage", JOB_KEY, jobkey, DEST_KEY, dest );
  }

  @Override public boolean toHTML( StringBuilder sb ) {
    Job jjob = Job.findJob(job_key);
    DRFModel m = DKV.get(jjob.dest()).get();
    m.generateHTML("DRF Model", sb);
    return true;
  }
}

@@ -765,17 +765,17 @@
 del m = 
-D
+U
 KV.get(j
@@ -789,19 +789,26 @@
 t())
-.get();%0A   
+;%0A    if (m!=null)
  m.g
@@ -837,16 +837,67 @@
 %22, sb);%0A
+    else DocGen.HTML.paragraph(sb, %22Pending...%22);%0A%0A
     retu

Fix of NPE in DRFProgressPage.