Force buffer to 0 if null