Changeset 3710


Ignore:
Timestamp:
Sep 6, 2007, 9:39:04 AM (14 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #745: NullPointerException? in File.getSize()
References #628 and #575.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.4-stable/src/core/net/sf/basedb/core/File.java

    r3679 r3710  
    619619  public long getSize()
    620620  {
    621     // Due to bug #575, can be removed once an update script has been created in the trunk
    622     long size = getData().getSize();
    623     java.io.File file = newInternalFile != null ? newInternalFile : getAbsolutePath(getInternalName());
    624     if (file.exists())
    625     {
    626       size = file.length();
    627     }
    628     return size;
     621    return getData().getSize();
    629622  }
    630623 
Note: See TracChangeset for help on using the changeset viewer.