From 002a8495908c7ff962108ee075e96bbba1ad61d6 Mon Sep 17 00:00:00 2001 From: rtrimana Date: Wed, 16 Oct 2019 11:52:22 -0700 Subject: [PATCH] Fixing a few bugs. Still need to check for the backtrack analysis. --- src/main/gov/nasa/jpf/listener/StateReducer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/gov/nasa/jpf/listener/StateReducer.java b/src/main/gov/nasa/jpf/listener/StateReducer.java index 82e8cf8..e594c28 100644 --- a/src/main/gov/nasa/jpf/listener/StateReducer.java +++ b/src/main/gov/nasa/jpf/listener/StateReducer.java @@ -162,7 +162,7 @@ public class StateReducer extends ListenerAdapter { for(IntChoiceFromSet cg : cgMap.keySet()) { int event = cgMap.get(cg); LinkedList choiceLists = backtrackMap.get(event); - if (choiceLists.peekFirst() != null) { + if (choiceLists != null && choiceLists.peekFirst() != null) { Integer[] choiceList = choiceLists.removeFirst(); // Deploy the new choice list for this CG cg.setNewValues(choiceList); -- 2.34.1