Skip to content

Commit

Permalink
Merge pull request #897 from mattrjacobs/backport-896
Browse files Browse the repository at this point in the history
Backport of #896
  • Loading branch information
mattrjacobs committed Sep 14, 2015
2 parents 0e18402 + 400bf5a commit c16318b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public HystrixGeneratedCacheKey generateCacheKey(CacheInvocationContext<? extend
StringBuilder cacheKeyBuilder = new StringBuilder();
for (CacheInvocationParameter parameter : cacheInvocationContext.getKeyParameters()) {
CacheKey cacheKey = parameter.getCacheKeyAnnotation();
if (StringUtils.isNotBlank(cacheKey.value())) {
if (cacheKey != null && StringUtils.isNotBlank(cacheKey.value())) {
appendPropertyValue(cacheKeyBuilder, Arrays.asList(StringUtils.split(cacheKey.value(), ".")), parameter.getValue());
} else {
cacheKeyBuilder.append(parameter.getValue());
Expand Down

0 comments on commit c16318b

Please sign in to comment.