diff --git a/go/libraries/doltcore/env/config.go b/go/libraries/doltcore/env/config.go index fa3ea4fca0..74532d3d60 100644 --- a/go/libraries/doltcore/env/config.go +++ b/go/libraries/doltcore/env/config.go @@ -178,6 +178,9 @@ func (dcc *DoltCliConfig) GetStringOrDefault(key, defStr string) string { } func (dcc *DoltCliConfig) GetBool(key string, defaultValue bool) (bool, error) { + if dcc == nil { + return defaultValue, nil + } configString, err := dcc.GetString(config.MmapArchiveIndexes) if err == config.ErrConfigParamNotFound { return defaultValue, nil