Changeset 5762


Ignore:
Timestamp:
Sep 26, 2011, 3:01:18 PM (10 years ago)
Author:
Nicklas Nordborg
Message:

References #1604: Support for multiple files of the same type in a FileSet?

Fixed a NullPointerException? when removing the only file of a given file type from a file set.

File:
1 edited

Legend:

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

    r5719 r5762  
    556556    DbControl dc = getDbControl();
    557557    int typeId = type.getId();
    558     int fileId = file.getId();
     558    int fileId = file == null ? 0 : file.getId();
    559559    FileSetMember remain = null;
    560560    Iterator<FileSetMemberData> it = getData().getMembers().iterator();
Note: See TracChangeset for help on using the changeset viewer.