提交 6851883e 编写于 作者: K kohsuke

noting why I'm doing a null check.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@16422 71c3de6d-444a-0410-be80-ed276b4c234a
上级 37826583
...@@ -276,6 +276,8 @@ public abstract class Trigger<J extends Item> implements Describable<Trigger<?>> ...@@ -276,6 +276,8 @@ public abstract class Trigger<J extends Item> implements Describable<Trigger<?>>
if (i instanceof TopLevelItem) {// ugly if (i instanceof TopLevelItem) {// ugly
TopLevelItemDescriptor tld = ((TopLevelItem) i).getDescriptor(); TopLevelItemDescriptor tld = ((TopLevelItem) i).getDescriptor();
// tld shouldn't be really null in contract, but we often write test Describables that
// doesn't have a Descriptor.
if(tld!=null && !tld.isApplicable(t)) continue; if(tld!=null && !tld.isApplicable(t)) continue;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册