I am trying to compute the MLE for a sample $X_1, \ldots, X_n$ where $$ f(x,\theta) = (\theta + 1)\theta^x, 0 \leq x \leq 1 $$
I have defined the likelihood as: $$ \begin{align} L(\theta|x) &= \prod_{i=1}^n (\theta+1)\theta^{x_i}\mathbb{1}_{[0,1]}(x_i) \\ &= (\theta+1)^n \theta^{\sum x_i}\prod_{i=1}^n 1_{[0,1]}(x_i)\\ \end{align} $$ But I am having trouble on the computation of the log likelihood: $$ \log L(\theta|x) = n \log(\theta +1) + \log(\theta)\sum_{i=1}^nx_i + \sum_{i=1}^n \log 1_{[0,1]}(x_i) $$
I see that I can take the derivative of this and compute the estimator for $\theta$ since the second derivative is <0. However, I am not sure what happens on the log likelihood with the term with the indicator function: if $x_i$ is outside the support, then the logarithm is undefined. Is this allowed, or should I somehow take this into account?