additional precaution

This commit is contained in:
Athou
2013-07-05 18:45:37 +02:00
parent a9b246d286
commit d29db78238

View File

@@ -100,7 +100,7 @@ public class PubSubHubbubCallbackREST {
byte[] bytes = IOUtils.toByteArray(request.getInputStream());
FetchedFeed fetchedFeed = parser.parse(null, bytes);
String topic = fetchedFeed.getFeed().getPushTopic();
if (topic != null) {
if (StringUtils.isNotBlank(topic)) {
log.debug("content callback received for {}", topic);
List<Feed> feeds = feedDAO.findByTopic(topic);
for (Feed feed : feeds) {