From de022e798e527ee5d5b68905059b3a40aa3ecb46 Mon Sep 17 00:00:00 2001 From: bdemsky Date: Tue, 1 Aug 2006 22:56:17 +0000 Subject: [PATCH] Bug fixes --- Robust/src/IR/Flat/BuildFlat.java | 3 +++ Robust/src/IR/State.java | 4 ++++ Robust/src/IR/Tree/BuildIR.java | 9 ++++----- Robust/src/IR/Tree/SemanticCheck.java | 2 ++ Robust/src/IR/TypeDescriptor.java | 2 +- Robust/src/Main/Main.java | 5 +++++ Robust/src/Tests/TaskExample.java | 6 ++++-- 7 files changed, 23 insertions(+), 8 deletions(-) diff --git a/Robust/src/IR/Flat/BuildFlat.java b/Robust/src/IR/Flat/BuildFlat.java index f47fdeeb..a0fcb722 100644 --- a/Robust/src/IR/Flat/BuildFlat.java +++ b/Robust/src/IR/Flat/BuildFlat.java @@ -51,6 +51,9 @@ public class BuildFlat { /* This method transforms a vector of FlagEffects into the FlatFlagActionNode */ private void updateFlagActionNode(FlatFlagActionNode ffan, Vector flags) { + if (flags==null) // Do nothing if the flag effects vector is empty + return; + for(int i=0;i