Browse Source

Merge pull request #683 from csmith/master

Fix NPE in ShowTopic...
pull/684/head
Greg Holmes 8 years ago
parent
commit
dcf8945a24
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/com/dmdirc/commandparser/commands/channel/ShowTopic.java

+ 1
- 1
src/com/dmdirc/commandparser/commands/channel/ShowTopic.java View File

@@ -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 {

Loading…
Cancel
Save