Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Commit

Permalink
Merge pull request #11456 from adobe/abose/fixFreshInstall
Browse files Browse the repository at this point in the history
After fresh install health data should always return an empty object if not already defined.
  • Loading branch information
rroshan1 committed Jul 23, 2015
2 parents 644b642 + 1c7530c commit 51de270
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/HealthLogger.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ define(function (require, exports, module) {
* @return {Object} Health Data aggregated till now
*/
function getStoredHealthData() {
return PreferencesManager.getViewState(HEALTH_DATA_STATE_KEY);
var storedData = PreferencesManager.getViewState(HEALTH_DATA_STATE_KEY) || {};
return storedData;
}

/**
Expand Down

0 comments on commit 51de270

Please sign in to comment.