提交 9ed9a592 编写于 作者: K kohsuke

NPE guard

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@31102 71c3de6d-444a-0410-be80-ed276b4c234a
上级 f008fe6c
......@@ -24,7 +24,9 @@ public class DNSMultiCast implements Closeable {
this.jmdns = JmDNS.create();
Map<String,String> props = new HashMap<String, String>();
props.put("url",hudson.getRootUrl());
String rootURL = hudson.getRootUrl();
if (rootURL!=null)
props.put("url", rootURL);
props.put("version",Hudson.getVersion().toString());
TcpSlaveAgentListener tal = hudson.getTcpSlaveAgentListener();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册