Skip to content
Snippets Groups Projects
Commit 445659ec authored by cramakri's avatar cramakri
Browse files

LMS-2131 Fix NPE.

SVN: 20604
parent 6a550889
No related branches found
No related tags found
No related merge requests found
......@@ -40,6 +40,7 @@ import ch.systemsx.cisd.openbis.generic.shared.api.v1.IGeneralInformationService
import ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.DataSetType;
import ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.PropertyType;
import ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.PropertyTypeGroup;
import ch.systemsx.cisd.openbis.generic.shared.basic.dto.DataTypeCode;
import ch.systemsx.cisd.openbis.generic.shared.util.SimplePropertyValidator;
/**
......@@ -474,7 +475,11 @@ public class DataSetUploadClientModel
try
{
simplePropertyValidator.validatePropertyValue(propertyType.getDataType(), valueOrNull);
DataTypeCode dataType = propertyType.getDataType();
if (simplePropertyValidator.canValidate(dataType))
{
simplePropertyValidator.validatePropertyValue(dataType, valueOrNull);
}
} catch (UserFailureException e)
{
errors.add(ValidationError.createPropertyValidationError(propertyType.getCode(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment