Changeset 10700


Ignore:
Timestamp:
Apr 30, 2011, 1:48:48 PM (13 years ago)
Author:
mlg
Message:

Bug correction : ClassCastException when trying to add tags.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/jiwigo-ws-api/src/main/java/fr/mael/jiwigo/dao/impl/TagDaoImpl.java

    r10505 r10700  
    5656        Document doc = sessionManager.executeReturnDocument(MethodsEnum.TAGS_ADMIN_LIST.getLabel());
    5757        //      System.out.println(Outil.documentToString(doc));
    58 
    59         return getTagsFromDocument((Element) doc.getDocumentElement().getElementsByTagName("tags"));
     58        NodeList nodeList = doc.getDocumentElement().getElementsByTagName("tags");
     59        return getTagsFromDocument((Element) doc.getDocumentElement().getElementsByTagName("tags").item(0));
    6060
    6161    }
Note: See TracChangeset for help on using the changeset viewer.