Skip to content

Commit 6e6c8ea

Browse files
authored
Update StompClient.java
1 parent 6acd031 commit 6e6c8ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/main/java/ua/naiksoftware/stomp/client/StompClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ public Observable<StompMessage> topic(String destinationPath, List<StompHeader>
177177
}
178178

179179
private Observable<Void> subscribePath(String destinationPath, List<StompHeader> headerList) {
180-
if (destinationPath == null) return null;
180+
if (destinationPath == null) return Observable.empty();
181181
String topicId = UUID.randomUUID().toString();
182182

183183
if (mTopics == null) mTopics = new HashMap<>();

0 commit comments

Comments
 (0)