added nil check to GetProcess

This commit is contained in:
Todd Gruben 2015-03-11 03:27:34 +00:00
parent 8b2398b8e5
commit 02a0ee73cd

View file

@ -124,11 +124,14 @@ func (self *TopologyMapper) MakeFragments(db string, slice_int int) error {
for _, dbs := range self.service.Cluster.GetDatabases() {
for _, fsi := range dbs.GetFrameSliceIntersects() {
fragment := fsi.GetFragment()
process := fragment.GetProcess().Id().String()
if len(process) > 1 {
i := m[process]
i++
m[process] = i
p := fragment.GetProcess()
if p != nil {
process := p.Id().String()
if len(process) > 1 {
i := m[process]
i++
m[process] = i
}
}
}
}