Commit aaa9f550 authored by szh's avatar szh

update nil pointer

parent 208b6cd3
...@@ -339,7 +339,12 @@ func closeNode() error { ...@@ -339,7 +339,12 @@ func closeNode() error {
func updateJobMap(id int32,err error) bool { func updateJobMap(id int32,err error) bool {
if _,exists:= JobDoneMap[id];!exists { if _,exists:= JobDoneMap[id];!exists {
JobDoneMap[id] = err.Error() if err == nil {
JobDoneMap[id] = ""
} else {
JobDoneMap[id] = err.Error()
}
return true return true
} }
tlog.Error("updateJobMap error","jobid",id) tlog.Error("updateJobMap error","jobid",id)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment