Handing Exception null range in IntegerRange and FloatRange