Fix NPE in setNightVision