소스 검색

Bail out of component chains if one returns null

Fixes issue 3903

Change-Id: I60820f7fa781c88377ccd0ef7339bd26badd4d81
Reviewed-on: http://gerrit.dmdirc.com/1066
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com>
Reviewed-by: Gregory Holmes <greg@dmdirc.com>
tags/0.6.4rc1
Chris Smith 14 년 전
부모
커밋
6733cdce62
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4
    0
      src/com/dmdirc/actions/ActionComponentChain.java

+ 4
- 0
src/com/dmdirc/actions/ActionComponentChain.java 파일 보기

@@ -75,6 +75,10 @@ public class ActionComponentChain implements ActionComponent {
75 75
         Object res = argument;
76 76
         
77 77
         for (ActionComponent component : components) {
78
+            if (res == null) {
79
+                return null;
80
+            }
81
+            
78 82
             res = component.get(res);
79 83
         }
80 84
         

Loading…
취소
저장