mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 05:52:26 +00:00
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
This commit is contained in:
1 parent
6296bad3eb
commit
45869b0c20
1 file changed
+2
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user