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