Fix potential SEGV with null delegate handler

This commit is contained in:
Nail Islamov 2017-05-15 13:36:51 +10:00
parent 6c50ffcf7b
commit 0e79b7c91b

View File

@ -145,7 +145,7 @@ func (c completedConfig) New(delegationTarget genericapiserver.DelegationTarget)
groupDiscoveryHandler,
s.GenericAPIServer.RequestContextMapper(),
customResourceInformers.Apiextensions().InternalVersion().CustomResources().Lister(),
delegationTarget.UnprotectedHandler(),
delegateHandler,
c.CustomResourceRESTOptionsGetter,
c.GenericConfig.AdmissionControl,
)