Fixed a null pointer exception when used with config rotator