Skip to content

Commit 4003429

Browse files
author
kaleidox
committed
only set route name if any is available
1 parent fe5f0a4 commit 4003429

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/comroid/api/net/Rabbit.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public class Route<T> extends Event.Bus<T> {
175175
@NonFinal String tag;
176176

177177
private Route(@Nullable String name, @Nullable String routingKey, ByteConverter<T> converter) {
178-
this.name = (Debug.isDebug() ? "dev." : "") + name;
178+
this.name = name == null ? null : (Debug.isDebug() ? "dev." : "") + name;
179179
this.routingKey = routingKey;
180180
this.converter = converter;
181181

0 commit comments

Comments
 (0)