Changeset 220


Ignore:
Timestamp:
03/08/10 17:14:17 (14 years ago)
Author:
oschonef
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • VirtualCollectionRegistry/trunk/VirtualCollectionRegistry/src/main/java/eu/clarin/cmdi/virtualcollectionregistry/model/VirtualCollection.java

    r215 r220  
    268268                this.setType(vc.getType());
    269269                this.setOrigin(vc.getOrigin());
    270                 this.creator.setName(vc.getCreator().getName());
    271                 this.creator.setEMail(vc.getCreator().getEMail());
    272                 this.creator.setOrganisation(vc.getCreator().getOrganisation());
     270                Creator c = vc.getCreator();
     271                if (c != null) {
     272                        this.creator.setName(c.getName());
     273                        this.creator.setEMail(c.getEMail());
     274                        this.creator.setOrganisation(c.getOrganisation());
     275                } else {
     276                        this.creator = null;
     277                }
    273278
    274279                HashMap<Integer, Resource> old_res =
    275280                        new HashMap<Integer, Resource>(this.resources.size());
    276                 for(Resource r : this.resources) {
     281                for (Resource r : this.resources) {
    277282                        old_res.put(r.getSignature(), r);
    278                        
     283
    279284                }
    280285                HashMap<Integer, Resource> new_res =
    281286                        new HashMap<Integer, Resource>(vc.getResources().size());
    282                 for(Resource r : vc.getResources()) {
     287                for (Resource r : vc.getResources()) {
    283288                        new_res.put(r.getSignature(), r);
    284289                }
Note: See TracChangeset for help on using the changeset viewer.