Issue #306 editing AS directly - detectUnitializedVars fix

This commit is contained in:
Jindra Pet��k
2014-02-24 22:15:10 +01:00
parent 66746abd20
commit fa15870752
13 changed files with 57 additions and 19 deletions
@@ -44,8 +44,12 @@ public class IfItem extends GraphTargetItem implements Block {
@Override
public List<List<GraphTargetItem>> getSubs() {
List<List<GraphTargetItem>> ret = new ArrayList<>();
ret.add(onTrue);
ret.add(onFalse);
if (onTrue != null) {
ret.add(onTrue);
}
if (onFalse != null) {
ret.add(onFalse);
}
return ret;
}