make sure the key is not null

This commit is contained in:
Athou
2013-05-27 22:52:14 +02:00
parent 6cc686ad03
commit 6f96bd6df1

View File

@@ -14,6 +14,7 @@ import javax.annotation.PreDestroy;
import javax.inject.Inject;
import javax.inject.Singleton;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -134,7 +135,7 @@ public class FeedRefreshUpdater {
private boolean updateEntry(final Feed feed, final FeedEntry entry,
final List<FeedSubscription> subscriptions) {
String key = entry.getUrl();
String key = StringUtils.trimToEmpty(entry.getUrl());
Lock lock = locks.get(key);
boolean locked = false;
try {