From a7f721e0cd7c338ccbdcd6017bb32ff6b0e5f269 Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Tue, 4 Jul 2023 19:46:14 -0600 Subject: [PATCH] Allow loading of nil thread_info --- thread.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thread.go b/thread.go index 4f2840c..57619da 100644 --- a/thread.go +++ b/thread.go @@ -177,7 +177,7 @@ func RestoreBaseThreadState(ctx * GraphContext, j BaseThreadStateJSON, loaded_no state.children[i] = child_t 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) } info_fn, exists := ctx.InfoLoadFuncs[j.Type]