Changeset 6761


Ignore:
Timestamp:
Mar 6, 2015, 11:28:15 AM (7 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #1925: ObjectNotFoundException? when creating a new project default protocol that is replacing an older protocol

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.4-stable/src/core/net/sf/basedb/core/Project.java

    r6576 r6761  
    690690        if (dataClass.isInstance(data))
    691691        {
     692          // Check if item has been removed
     693          try
     694          {
     695            Hibernate.initialize(data);
     696          }
     697          catch (org.hibernate.ObjectNotFoundException ex)
     698          {
     699            it.remove();
     700            continue;
     701          }
     702         
    692703          // Found an item of the correct item type... get it's subtype
    693704          ItemSubtypeData otherSubtype = null;
Note: See TracChangeset for help on using the changeset viewer.