--- a/src/plugins/hooks/jsonapi/JobHandler.cpp
+++ b/src/plugins/hooks/jsonapi/JobHandler.cpp
@@ -187,9 +187,11 @@
       foreach(db::Job steve, jobs.all()) {
         JSONNode job(JSON_NODE);
         job.push_back(JSONNode("uuid", steve.uuid.value()));
-        JSONNode g = libjson::parse(steve.graph.value());
-        g.set_name("graph");
-        job.push_back(g);
+        if(steve.graph.value().length()>0&&steve.graph.value()!="NULL"){
+          JSONNode g = libjson::parse(steve.graph.value());
+          g.set_name("graph");
+          job.push_back(g);
+        }
         try{
         if(steve.graphstatus.value().length()>0){
     	    JSONNode gstatus = libjson::parse(steve.graphstatus.value());