From a455ec3f2239c467a0150983411a2f0ea5ef95c3 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Lievremont Date: Wed, 11 Jun 2014 17:13:55 +0200 Subject: [PATCH] SONAR-5136 Protect against unavailability of parent activation info --- .../views/coding-rules-detail-quality-profile-view.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonar-server/src/main/coffee/coding-rules/views/coding-rules-detail-quality-profile-view.coffee b/sonar-server/src/main/coffee/coding-rules/views/coding-rules-detail-quality-profile-view.coffee index 7e856342f1b..c1f3c9a201d 100644 --- a/sonar-server/src/main/coffee/coding-rules/views/coding-rules-detail-quality-profile-view.coffee +++ b/sonar-server/src/main/coffee/coding-rules/views/coding-rules-detail-quality-profile-view.coffee @@ -71,7 +71,7 @@ define [ return null unless @model.get('inherit') && @model.get('inherit') != 'NONE' parentKey = @model.get('parent') + ':' + @model.get('lang') parent = _.extend {}, _.findWhere(@options.app.qualityProfiles, key: parentKey) - parentActiveInfo = @model.collection.findWhere(qProfile: parentKey) + parentActiveInfo = @model.collection.findWhere(qProfile: parentKey) or {} _.extend parent, parentActiveInfo.toJSON() parent -- 2.39.5