Skip to content
Snippets Groups Projects
Commit 2d4008e8 authored by kaloyane's avatar kaloyane
Browse files

minor: [LMS-2033] getSampleForUpdate() now returns NULL instead of throwing a runtime exception.

SVN: 19951
parent ba606938
No related branches found
No related tags found
No related merge requests found
...@@ -151,8 +151,13 @@ abstract class AbstractTransactionState<T extends DataSetInformation> ...@@ -151,8 +151,13 @@ abstract class AbstractTransactionState<T extends DataSetInformation>
ch.systemsx.cisd.openbis.generic.shared.basic.dto.Sample sample = ch.systemsx.cisd.openbis.generic.shared.basic.dto.Sample sample =
openBisService.tryGetSampleWithExperiment(sampleIdentifier); openBisService.tryGetSampleWithExperiment(sampleIdentifier);
Sample result = new Sample(sample); Sample result = null;
samplesToBeUpdated.add(result); if (sample != null)
{
result = new Sample(sample);
samplesToBeUpdated.add(result);
}
return result; return result;
} }
......
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