changes
[IRC.git] / Robust / src / Analysis / TaskStateAnalysis / TaskQueue.java
index dd6404f722c3c37384e965b3657736c42046511d..5229480232d9436fee0dce40a3366ecc94279225 100644 (file)
@@ -22,14 +22,16 @@ public class TaskQueue {
        this.task=td;
        this.parameterset=(HashSet<FlagTagState>[])new HashSet[task.numParameters()];
        this.map=new Hashtable<FlagState, Vector<FlagTagState>>();
+       this.tags=new Vector<TempDescriptor>();
        for(int i=0;i<task.numParameters();i++) {
            this.parameterset[i]=new HashSet<FlagTagState>();
            TagExpressionList tel=td.getTag(td.getParameter(i));
-           for(int j=0;j<tel.numTags();j++) {
-               TempDescriptor tagtmp=tel.getTemp(j);
-               if (!tags.contains(tagtmp))
-                   tags.add(tagtmp);
-           }
+           if (tel!=null)
+               for(int j=0;j<tel.numTags();j++) {
+                   TempDescriptor tagtmp=tel.getTemp(j);
+                   if (!tags.contains(tagtmp))
+                       tags.add(tagtmp);
+               }
        }
     }