diff --git a/plugins/base/server.go b/plugins/base/server.go index e9afd2641..82fd1c210 100644 --- a/plugins/base/server.go +++ b/plugins/base/server.go @@ -64,9 +64,11 @@ func (b *basePluginServer) SetConfig(ctx context.Context, req *proto.SetConfigRe cfg := nomadConfigFromProto(req.GetNomadConfig()) filteredCfg := new(ClientAgentConfig) - switch info.Type { - case PluginTypeDriver: - filteredCfg.Driver = cfg.Driver + if cfg != nil { + switch info.Type { + case PluginTypeDriver: + filteredCfg.Driver = cfg.Driver + } } // Set the config