I know this is trivial and intuitive, but I'm not able to convince myself rigorously. If $P(A)=0$, why is it true that $E(X1_A)=0$?
Every book discards it out as an obvious fact. I tried to prove it using the simple functions definition of Lebesgue integration.
Proof: First, suppose $s=\sum_{i=1}^n a_i\chi_{A_i}$ is a simple measurable function (i.e. the range of $s$ is a finite set $\{a_1,\ldots,a_n\}$, and $A_i=s^{-1}(a_i)\in\mathcal{F}$). Then, by definition $$\int_AsdP=\sum_{i=1}^na_iP(A_i\cap A)\leq\sum_{i=1}^na_iP(A)=0.$$ Now, it is a theorem that any measurable function $f:\Omega\to[0,\infty)$ is the pointwise limit of a non-decreasing sequence $s_n$ of simple measurable function. Hence, by Lebesgue monotone convergence theorem, $$\int_A fdP=\lim_{n\to\infty}\int_As_ndP=\lim_{n\to\infty}0=0.$$