 <p>According to this answer:<br> <a href="http://stackoverflow.com/a/2010948/4022252">Storing Objects in HTML5 localStorage</a> </p> <p>localStorage is made to save String key-value-pairs, <strong>only</strong>! </p> <p>null is an empty Object. </p> <p>So this is not a bug, it is actually the expected behaviour.</p>