Skip to content
Snippets Groups Projects
Commit 4db4110d authored by juanf's avatar juanf
Browse files

SSDM-14058: Bugfix Move Sample, null pointer.

parent 0ad31337
No related branches found
No related tags found
1 merge request!40SSDM-13578 : 2PT : Database and V3 Implementation - include the new AFS "free"...
......@@ -137,7 +137,7 @@ function MoveEntityController(entityType, entityPermId) {
_this.gatherAllDescendants(samplesToUpdate, map[permId]);
var updates = []
samplesToUpdate.forEach(function(sample) {
if (currentExperiment == sample.getExperiment().getPermId().getPermId()) {
if (sample.getExperiment() != null && currentExperiment == sample.getExperiment().getPermId().getPermId()) {
var sampleUpdate = new SampleUpdate();
sampleUpdate.setSampleId(sample.getPermId());
sampleUpdate.setExperimentId(experimentId);
......
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