mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 05:52:26 +00:00
fixed NPE in case of abnormal shutdown
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@31436 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
685ee99148
commit
7d3745cdef
1 file changed
+4
-1
@@ -45,7 +45,10 @@ public class DNSMultiCast implements Closeable {
|
||||
}
|
||||
|
||||
public void close() {
|
||||
jmdns.close();
|
||||
if (jmdns!=null) {
|
||||
jmdns.close();
|
||||
jmdns = null;
|
||||
}
|
||||
}
|
||||
|
||||
private static final Logger LOGGER = Logger.getLogger(DNSMultiCast.class.getName());
|
||||
|
||||
Reference in new issue
Block a user