提交 d98926ae 编写于 作者: K Kohsuke Kawaguchi

Fixes NPE.

if the root URL isn't configured, clients won't be able to find this, so might as well not advertise at all.
上级 ff90e3de
......@@ -28,7 +28,8 @@ public class DNSMultiCast implements Closeable {
Map<String,String> props = new HashMap<String, String>();
String rootURL = hudson.getRootUrl();
if (rootURL!=null)
if (rootURL==null) return;
props.put("url", rootURL);
try {
props.put("version",String.valueOf(Jenkins.getVersion()));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册