diff --git a/go/tasks/plugins/webapi/databricks/plugin.go b/go/tasks/plugins/webapi/databricks/plugin.go index ea8c581eb..dca3581d5 100644 --- a/go/tasks/plugins/webapi/databricks/plugin.go +++ b/go/tasks/plugins/webapi/databricks/plugin.go @@ -168,6 +168,9 @@ func (p Plugin) Get(ctx context.Context, taskCtx webapi.GetContext) (latest weba if err != nil { return nil, err } + if data == nil || data["state"] == nil { + return nil, errors.Errorf("CorruptedPluginState", "can't get the job state") + } jobState := data["state"].(map[string]interface{}) message := fmt.Sprintf("%s", jobState["state_message"]) jobID := fmt.Sprintf("%.0f", data["job_id"])