HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2012-07-18 a19480f55bff9d50ef5d750e9a8fddfc7caa86b8
error in xmlrpc typeconversion
1 files modified
10 ■■■■■ changed files
hsarback/src/de/hsadmin/remote/DomainRemote.java 10 ●●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/remote/DomainRemote.java
@@ -63,10 +63,12 @@
        }
        Set<DomainOption> domainOptionsSet = new TreeSet<DomainOption>();
        Object domOptsObj = setParams.get("domainoptions");
        if (domOptsObj != null && domOptsObj instanceof List<?>) {
            List<String> domOptions = (List<String>) domOptsObj;
            for (String optString : domOptions) {
                domOptions.add(optString);
        if (domOptsObj != null && domOptsObj instanceof Object[]) {
            Object[] domOptions = (Object[]) domOptsObj;
            for (int i=0; i<domOptions.length; i++) {
                DomainOption domainOption = new DomainOption();
                domainOption.setName((String)domOptions[i]);
                domainOptionsSet.add(domainOption);
            }
        }
        dom.setDomainOptions(domainOptionsSet);