Skip to content

Commit

Permalink
misc changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dhilpipre committed Feb 28, 2024
1 parent 2582d3f commit b914c57
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ public abstract class Router {
@Trace(dispatcher=true)
private CompletableFuture<Event> doRoute(CoreEvent event, Configuration config,CoreEvent.Builder eventBuilder, HttpRequestAttributes attributes) {
CompletableFuture<Event> result = Weaver.callOriginal();
return result.whenComplete(new NRBiConsumer<>(getName()));
String name = getName();
if(name == null || name.isEmpty()) name = "Unknown";
return result.whenComplete(new NRBiConsumer<>(name));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

@Weave(type=MatchType.BaseClass)
public abstract class AbstractExecutableComponent extends AbstractComponent {

@Trace(dispatcher=true)
public CompletableFuture<ExecutionResult> execute(InputEvent paramInputEvent) {
CompletableFuture<ExecutionResult> f = Weaver.callOriginal();
Expand Down
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ include 'Mule-Http-1.2'
include 'Mule-HttpConnector'
include 'Mule-Core-4.5'
include 'Mule-Core-4.5-2022x'
include 'Mule-Core-4.4-2022x'

0 comments on commit b914c57

Please sign in to comment.