Changeset 5391


Ignore:
Timestamp:
Aug 18, 2010, 11:55:17 AM (12 years ago)
Author:
Nicklas Nordborg
Message:

References #1498: Investigate and fix issues found by FindBugs?

Reverted a change made in [5384] since it caused the taglib to store and use old DbControl:s.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/clients/web/net/sf/basedb/clients/web/taglib/PropertyValue.java

    r5384 r5391  
    177177    if (dc == null && item instanceof BasicItem)
    178178    {
    179       dc = ((BasicItem)item).getDbControl();
     179      return ((BasicItem)item).getDbControl();
    180180    }
    181181    return dc;
     
    269269    {
    270270      Object item = getItem();
    271       Object value = null;     
    272       String ID = getDbcontrol().getSessionControl().getId();     
     271      Object value = null; 
     272      DbControl dc = getDbcontrol();
     273      String ID = dc.getSessionControl().getId();     
    273274     
    274275      if (item != null)
    275276      {
    276277        PropertyPath propertyPath = getPropertyPath(item, getProperty());
    277         value = propertyPath.getValue(getDbcontrol(), item);
     278        value = propertyPath.getValue(dc, item);
    278279      }
    279280      if (value instanceof Removable)
Note: See TracChangeset for help on using the changeset viewer.