fix NPE on strategy is null sometime in AllocationRecordStrategy