Merge pull request #423 from Juniper/index_alloc_exeception

Catching Wrong execption in alloc and reserve