X-Git-Url: http://git.megacz.com/?p=sbp.git;a=blobdiff_plain;f=src%2Fedu%2Fberkeley%2Fsbp%2FForest.java;fp=src%2Fedu%2Fberkeley%2Fsbp%2FForest.java;h=43ffb10fcfc4a0a1daaef9f0c59e92dc8559dfc1;hp=ee3bfbcf75c21c792419635b0e314b193db78886;hb=8a5250c184672495fae152e096b2e800749cd0db;hpb=2cca97362e80d5a3cd3e02d791a10cd7c6f6b29c diff --git a/src/edu/berkeley/sbp/Forest.java b/src/edu/berkeley/sbp/Forest.java index ee3bfbc..43ffb10 100644 --- a/src/edu/berkeley/sbp/Forest.java +++ b/src/edu/berkeley/sbp/Forest.java @@ -21,6 +21,7 @@ public abstract class Forest implements GraphViz.ToGraphViz { public void expand(HashSet> ht) { expand(ht, new HashSet>(), null); } static Forest create(Input.Region loc, NodeType head, Forest[] children, boolean lift) { + if (loc == null) throw new Error(); return new One(loc, head, children, lift); }