NullpointerExceptions preventive tweak.