Pārlūkot izejas kodu

Merge pull request #683 from csmith/master

Fix NPE in ShowTopic...
pull/684/head
Greg Holmes 8 gadus atpakaļ
vecāks
revīzija
dcf8945a24

+ 1
- 1
src/com/dmdirc/commandparser/commands/channel/ShowTopic.java Parādīt failu

@@ -77,7 +77,7 @@ public class ShowTopic extends Command implements ExternalCommand {
77 77
                 final User user = topic
78 78
                         .flatMap(Topic::getClient)
79 79
                         .map(GroupChatUser::getUser)
80
-                        .orElseGet(null);
80
+                        .orElse(null);
81 81
                 channel.getEventBus().publishAsync(
82 82
                         new ChannelGotTopicEvent(channel, topic.get(), user));
83 83
             } else {

Notiek ielāde…
Atcelt
Saglabāt