[Bugfix] fix NPE when cloning Resources with no state vars

This commit is contained in:
Robert von Burg 2014-10-04 23:58:46 +02:00
parent b77f4b204f
commit 5fbbe50667
1 changed files with 4 additions and 2 deletions

View File

@ -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;