mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-06 15:43:04 +00:00
parent
64fdebe491
commit
2557feef3b
@ -104,7 +104,7 @@ public class ChangeEventHandler implements EventHandler {
|
||||
if (filterEnabled) {
|
||||
for (var thread : listOrEmpty(getThreads(responseContext, loggedInUserName))) {
|
||||
// Don't create a thread if there is no message
|
||||
if (!thread.getMessage().isEmpty()) {
|
||||
if (thread.getMessage() != null && !thread.getMessage().isEmpty()) {
|
||||
EntityInterface entity;
|
||||
// In case of ENTITY_FIELDS_CHANGED entity from responseContext will be a ChangeEvent
|
||||
if (responseContext.getEntity() instanceof ChangeEvent) {
|
||||
|
@ -200,9 +200,11 @@ public class WebhookPublisher extends AbstractEventPublisher {
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
Throwable cause = ex.getCause();
|
||||
if (cause.getClass() == UnknownHostException.class) {
|
||||
if (cause != null && cause.getClass() == UnknownHostException.class) {
|
||||
LOG.warn("Invalid webhook {} endpoint {}", webhook.getName(), webhook.getEndpoint());
|
||||
setErrorStatus(attemptTime, null, "UnknownHostException");
|
||||
} else {
|
||||
LOG.debug("Exception occurred while publishing webhook", ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user