gitlab #24
Change-Id: Id0fdaceeafc95495ad7ae7365f44214903b47bea
public void setNext(PipelineComponent comp) {
if (next == comp)
return;
- if (comp == null)
- this.next._removeRef(this);
+ if (this.next != null)
+ this.next._removeRef(this);
this.next = comp;
this.syncnext = false;
syncNext();
public void setPrevious(PipelineComponent comp) {
if (previous == comp)
return;
- if (comp == null)
+ if (this.previous != null)
this.previous._removeRef(this);
this.previous = comp;
this.syncprev = false;
public void setBranch0(PipelineComponent comp) {
if (branch0 == comp)
return;
- if (comp == null)
- this.branch0._removeRef(this);
+ if (this.branch0 != null)
+ this.branch0._removeRef(this);
this.branch0 = comp;
this.syncbr0 = false;
syncBranch0();