Changeset 5122


Ignore:
Timestamp:
Oct 9, 2009, 10:55:16 AM (12 years ago)
Author:
Nicklas Nordborg
Message:

References #1400: Store the item id together with annotation sets

Fixes a NullPointerException?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/core/net/sf/basedb/core/AnnotationSet.java

    r5121 r5122  
    306306    {
    307307      Integer itemId = getData().getItemId();
     308      if (dc == null) dc = getDbControl();
    308309      if (itemId == null)
    309310      {
    310         if (dc == null) dc = getDbControl();
    311311        itemId = loadItemId(dc.getHibernateSession(), getItemType(), getId());
    312312        getData().setItemId(itemId);
Note: See TracChangeset for help on using the changeset viewer.