error checking in AllocationRule
Merge commit '0da46125a35f47cdce54d25cdb0af731a5b3c7ef'