[Bugfix] fix NPE when cloning Resources with no state vars
This commit is contained in:
parent
b77f4b204f
commit
5fbbe50667
|
@ -172,8 +172,10 @@ public class Resource extends GroupedParameterizedElement implements StrolchRoot
|
||||||
|
|
||||||
super.fillClone(clone);
|
super.fillClone(clone);
|
||||||
|
|
||||||
for (StrolchTimedState<IValue<?>> timedState : this.timedStateMap.values()) {
|
if (this.timedStateMap != null) {
|
||||||
clone.addTimedState(timedState.getClone());
|
for (StrolchTimedState<IValue<?>> timedState : this.timedStateMap.values()) {
|
||||||
|
clone.addTimedState(timedState.getClone());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return clone;
|
return clone;
|
||||||
|
|
Loading…
Reference in New Issue