Fixing compile error introduced after making variable final but leaving a path in which it can miss getting initialized