Merge pull request #6113 from erictune/fix_kubectl

Fix kubectl
pull/6/head
Victor Marmol 2015-03-30 09:59:42 -07:00
commit 83c729d12f
1 changed files with 4 additions and 0 deletions

View File

@ -98,6 +98,10 @@ func (s *SwaggerSchema) ValidateObject(obj interface{}, apiVersion, fieldName, t
glog.V(2).Infof("couldn't find properties for %s, skipping", key)
continue
}
if details.Type == nil {
glog.V(2).Infof("nil details for %s, skipping", key)
continue
}
fieldType := *details.Type
if value == nil {
glog.V(2).Infof("Skipping nil field: %s", key)