Allow loading of nil thread_info

graph-rework-2
noah metz 2023-07-04 19:46:14 -06:00
parent c42ca80d47
commit a7f721e0cd
1 changed files with 1 additions and 1 deletions

@ -177,7 +177,7 @@ func RestoreBaseThreadState(ctx * GraphContext, j BaseThreadStateJSON, loaded_no
state.children[i] = child_t state.children[i] = child_t
info_map, ok := info_raw.(map[string]interface{}) info_map, ok := info_raw.(map[string]interface{})
if ok == false { if ok == false && info_raw != nil {
return nil, fmt.Errorf("Parsed map wrong type: %+v", info_raw) return nil, fmt.Errorf("Parsed map wrong type: %+v", info_raw)
} }
info_fn, exists := ctx.InfoLoadFuncs[j.Type] info_fn, exists := ctx.InfoLoadFuncs[j.Type]