Chi-Squared correction factor

#1
In chi-squared analysis we calculate the statistic by the formula ∑(oi-ei)*(oi-ei)/ei where oi is observed freequency and ei is expected freequency. But what if any ei=0 then denominator is 0. So in such a case would we directly reject the null hypothesis or apply any correction factor?