Ignore:
Timestamp:
Sep 1, 2011, 8:49:31 AM (12 years ago)
Author:
Nicklas Nordborg
Message:

References #1597: Subtypes of items

Fixes a NPE when there is no active project.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/views/rawbioassays/edit_rawbioassay.jsp

    r5687 r5712  
    170170    catch (Throwable t)
    171171    {}
    172     if (currentPlatform == null && defaultPlatforms.size() > 0)
     172    if (currentPlatform == null && defaultPlatforms != null && defaultPlatforms.size() > 0)
    173173    {
    174174      currentPlatform = defaultPlatforms.get(0);
    175175    }
    176     if (currentVariant == null && defaultVariants.size() > 0)
     176    if (currentVariant == null && defaultVariants != null && defaultVariants.size() > 0)
    177177    {
    178178      currentVariant = defaultVariants.get(0);
Note: See TracChangeset for help on using the changeset viewer.