Changeset 4457


Ignore:
Timestamp:
Mar 20, 2013, 1:36:40 PM (10 years ago)
Author:
olle
Message:

Refs #283. Refs #339. Classes/files action/sample/CreateSampleFile.java, action/extract/CreateExtractFile.java, and action/extract/CreateLabeledExtractFile.java in client/servlet/ updated to check if file list equals null before calling its isEmpty() method.

Location:
trunk/client/servlet/src/org/proteios/action
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/client/servlet/src/org/proteios/action/extract/CreateExtractFile.java

    r2479 r4457  
    6363    List<Integer> files = getValidIntegerList(FormFactory.VID);
    6464    Integer bmId = getSessionAttribute(ViewActiveExtract.VEXTRACTID);
    65     if (files.isEmpty())
     65    if (files == null || files.isEmpty())
    6666      throw new InvalidParameterException(
    6767        "Please select at least one file to use for annotation");
  • trunk/client/servlet/src/org/proteios/action/extract/CreateLabeledExtractFile.java

    r2479 r4457  
    6363    List<Integer> files = getValidIntegerList(FormFactory.VID);
    6464    Integer bmId = getSessionAttribute(ViewActiveLabeledExtract.VLABELEDEXTRACTID);
    65     if (files.isEmpty())
     65    if (files == null || files.isEmpty())
    6666      throw new InvalidParameterException(
    6767        "Please select at least one file to use for annotation");
  • trunk/client/servlet/src/org/proteios/action/sample/CreateSampleFile.java

    r2153 r4457  
    3939    List<Integer> files = getValidIntegerList(FormFactory.VID);
    4040    Integer bmId = getSessionAttribute(ViewActiveSample.VSAMPLEID);
    41     if (files.isEmpty())
     41    if (files == null || files.isEmpty())
    4242      throw new InvalidParameterException(
    4343        "Please select at least one file to use for annotation");
Note: See TracChangeset for help on using the changeset viewer.