"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." - George Bernard Shaw
That's an often made error. You did not initialize your instance variable but have instead created a local variable that shadows the instance field. This local variable is initialized. Simply remove the type declaration of that local variable and you will use the instance variable instead.