Changeset 237


Ignore:
Timestamp:
03/17/10 12:55:35 (14 years ago)
Author:
oschonef
Message:
  • fix not found condition with nummeric ids
File:
1 edited

Legend:

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

    r235 r237  
    214214                                        new Long(id));
    215215                        em.getTransaction().commit();
     216                        if (vc == null) {
     217                                throw new VirtualCollectionNotFoundException(id);
     218                        }
    216219                        return vc;
    217                 } catch (NoResultException e) {
    218                         throw new VirtualCollectionNotFoundException(id);
     220                } catch (VirtualCollectionRegistryException e) {
     221                        throw e;
    219222                } catch (Exception e) {
    220223                        logger.log(Level.SEVERE,
Note: See TracChangeset for help on using the changeset viewer.