Skip to content

Commit

Permalink
fix panic in portallocator
Browse files Browse the repository at this point in the history
Signed-off-by: allencloud <[email protected]>
  • Loading branch information
allencloud committed Sep 1, 2016
1 parent 85f9978 commit f44b2d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manager/allocator/networkallocator/portallocator.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func (pa *portAllocator) serviceDeallocatePorts(s *api.Service) {
}

func (pa *portAllocator) isPortsAllocated(s *api.Service) bool {
if s.Endpoint == nil {
if s.Endpoint == nil || s.Spec.Endpoint == nil {
return false
}

Expand Down

0 comments on commit f44b2d8

Please sign in to comment.