소스 검색

Merge pull request #378 from csmith/master

Fix silly NPE in InviteLabel.
pull/380/head
Greg Holmes 9 년 전
부모
커밋
e89a027460
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      ui_swing/src/com/dmdirc/addons/ui_swing/components/statusbar/InviteLabel.java

+ 1
- 1
ui_swing/src/com/dmdirc/addons/ui_swing/components/statusbar/InviteLabel.java 파일 보기

163
         if (event.getWindow().isPresent()) {
163
         if (event.getWindow().isPresent()) {
164
             activeConnection = event.getWindow().get().getContainer().getConnection();
164
             activeConnection = event.getWindow().get().getContainer().getConnection();
165
         } else {
165
         } else {
166
-            activeConnection = null;
166
+            activeConnection = Optional.empty();
167
         }
167
         }
168
         update();
168
         update();
169
     }
169
     }

Loading…
취소
저장