Changeset 6969


Ignore:
Timestamp:
Oct 2, 2015, 11:40:02 AM (6 years ago)
Author:
Nicklas Nordborg
Message:

References #1941: Store experimental factor values as part experiments

Fixes a NullPointerException in array design validator when the item overview was rooted on an array design (parentNode==null).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/core/net/sf/basedb/util/overview/validator/ArrayDesignValidator.java

    r6959 r6969  
    8686    // Check that a raw bioassay has same "direct" array desing as
    8787    // via physical bioassay->slide...
    88     Item parentType = parentNode.getItemType();
    89     if (parentNode != null && (parentType == Item.RAWBIOASSAY || parentType == Item.ROOTRAWBIOASSAY))
     88    Item parentType = parentNode != null ? parentNode.getItemType() : null;
     89    if (parentType == Item.RAWBIOASSAY || parentType == Item.ROOTRAWBIOASSAY)
    9090    {
    9191      RawBioAssay rba = parentType == Item.RAWBIOASSAY ? (RawBioAssay)parentNode.getItem(dc) : ((RootRawBioAssay)parentNode.getItem()).getRawBioAssay();
Note: See TracChangeset for help on using the changeset viewer.