提交 45869b0c 编写于 作者: K kohsuke

added defensive code. This was causing a failure in IRCPublisher.DescriptorImpl.save()


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2096 71c3de6d-444a-0410-be80-ed276b4c234a
上级 6296bad3
......@@ -51,6 +51,8 @@ public class XStream2 extends XStream {
private static final class AssociatedConverterImpl implements Converter {
private Converter findConverter(Class t) {
try {
if(t==null || t.getClassLoader()==null)
return null;
Class<?> cl = t.getClassLoader().loadClass(t.getName() + "$ConverterImpl");
return (Converter)cl.newInstance();
} catch (ClassNotFoundException e) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册