mirror of https://github.com/apache/nifi.git
NIFI-12834 Fixed ConsumeSlack NPE for latestReply field
This closes #8446 Signed-off-by: David Handermann <exceptionfactory@apache.org>
This commit is contained in:
parent
e9b99ed04f
commit
064e15b7be
|
@ -634,7 +634,8 @@ public class ConsumeChannel {
|
||||||
|
|
||||||
// If the message's latest reply is before our cutoff, don't bother polling for replies
|
// If the message's latest reply is before our cutoff, don't bother polling for replies
|
||||||
if (oldestTs != null) {
|
if (oldestTs != null) {
|
||||||
if (new SlackTimestamp(message.getLatestReply()).before(oldestTs)) {
|
final String latestReply = message.getLatestReply();
|
||||||
|
if (latestReply != null && new SlackTimestamp(latestReply).before(oldestTs)) {
|
||||||
return Collections.emptyList();
|
return Collections.emptyList();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue