forked from Archives/Athou_commafeed
increment metric only if queue is not null
This commit is contained in:
@@ -78,7 +78,9 @@ public class FeedRefreshTaskGiver {
|
|||||||
|
|
||||||
feed = takeQueue.poll();
|
feed = takeQueue.poll();
|
||||||
}
|
}
|
||||||
metricsBean.feedRefreshed();
|
if (feed != null) {
|
||||||
|
metricsBean.feedRefreshed();
|
||||||
|
}
|
||||||
return feed;
|
return feed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user