mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Merge branch 'master' into 'master'
Add missing commit in master - Fix NPE for policy See merge request entgra/carbon-device-mgt!177
This commit is contained in:
commit
e42950dd76
@ -43,9 +43,11 @@ public class PolicyEvaluationServiceImpl implements PolicyEvaluationPoint {
|
||||
@Override
|
||||
public List<ProfileFeature> getEffectiveFeatures(DeviceIdentifier deviceIdentifier)
|
||||
throws PolicyEvaluationException {
|
||||
|
||||
List<ProfileFeature> effectiveFeatures = evaluation.getEffectivePolicy(deviceIdentifier).
|
||||
getProfile().getProfileFeaturesList();
|
||||
List<ProfileFeature> effectiveFeatures = null;
|
||||
Policy effectivePolicy = evaluation.getEffectivePolicy(deviceIdentifier);
|
||||
if (effectivePolicy != null) {
|
||||
effectiveFeatures = effectivePolicy.getProfile().getProfileFeaturesList();
|
||||
}
|
||||
return effectiveFeatures;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user