Android Webview: "Uncaught TypeError: Cannot read property 'getItem' of null"

you need to do

WebSettings settings = webView.getSettings();
settings.setDomStorageEnabled(true);

see details ERROR/Web Console: Uncaught TypeError: Cannot call method 'getItem' of null at http://m.youtube.com/:844