ソースを参照

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
         

読み込み中…
キャンセル
保存