Skip to content
Snippets Groups Projects
Commit bbefef49 authored by izabel's avatar izabel
Browse files

fix: NPE

SVN: 16545
parent c32d1c0d
No related branches found
No related tags found
No related merge requests found
...@@ -220,7 +220,7 @@ abstract class AbstractSampleBusinessObject extends AbstractSampleIdentifierBusi ...@@ -220,7 +220,7 @@ abstract class AbstractSampleBusinessObject extends AbstractSampleIdentifierBusi
final SampleIdentifier sampleIdentifier) final SampleIdentifier sampleIdentifier)
{ {
SamplePE sample = tryGetValidSample(parentIdentifierOrNull, sampleIdentifier); SamplePE sample = tryGetValidSample(parentIdentifierOrNull, sampleIdentifier);
if (sample.getContainer() != null) if (sample != null && sample.getContainer() != null)
{ {
throw UserFailureException.fromTemplate( throw UserFailureException.fromTemplate(
"Cannot register sample '%s': parent '%s' is part of another sample.", "Cannot register sample '%s': parent '%s' is part of another sample.",
......
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