diff --git a/core/js/js.js b/core/js/js.js
index 12303d7dd91de1a7a3eafa3a18cdd7cc9b1015f5..f697f2b8537416dcc9ec875b78f2d31e54112f45 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -171,6 +171,7 @@ if(typeof localStorage !='undefined'){
 			return localStorage.setItem(OC.localStorage.namespace+name,JSON.stringify(item));
 		},
 		getItem:function(name){
+			if(localStorage.getItem(OC.localStorage.namespace+name)==null){return null;}
 			return JSON.parse(localStorage.getItem(OC.localStorage.namespace+name));
 		}
 	};