Index: chrome/common/json_pref_store.cc |
diff --git a/chrome/common/json_pref_store.cc b/chrome/common/json_pref_store.cc |
index 5891633cffe115e23d68e888fd9c4b483f810ef5..5dd3cf2c29c37176d26ae52ec21952279933e956 100644 |
--- a/chrome/common/json_pref_store.cc |
+++ b/chrome/common/json_pref_store.cc |
@@ -155,7 +155,8 @@ PrefStore::ReadResult JsonPrefStore::GetValue(const std::string& key, |
const Value** result) const { |
Value* tmp = NULL; |
if (prefs_->Get(key, &tmp)) { |
- *result = tmp; |
+ if (result) |
+ *result = tmp; |
return READ_OK; |
} |
return READ_NO_VALUE; |