TypeError: is null
<p>I have a situation where I declare an object <code>var o = null;</code></p>

<p>Then, I pass it into a function, do stuff and maybe assign an object to it.</p>

<p>Later on, I execute <code>parse(o.page)</code>.
If <code>o</code> is null, then I get "TypeError: o.page is null",
and the program stops there because I'm trying to get the property of a null value.</p>

<p>I know one solution could be to initially assign null to all of <code>o</code>'s properties.</p>

<p>Just wondering if there is a more subtle way to handle this error.
because I would like to handle <code>parse1(o);</code> and <code>parse2(o.page1)</code> where <code>o</code> can be null.</p>
