소스 검색

Merge pull request #683 from csmith/master

Fix NPE in ShowTopic...
pull/684/head
Greg Holmes 8 년 전
부모
커밋
dcf8945a24
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      src/com/dmdirc/commandparser/commands/channel/ShowTopic.java

+ 1
- 1
src/com/dmdirc/commandparser/commands/channel/ShowTopic.java 파일 보기

@@ -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…
취소
저장