From: rtrimana Date: Fri, 11 Sep 2020 18:54:27 +0000 (-0700) Subject: Testing the implementation; fixing a bug. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=jpf-core.git;a=commitdiff_plain;h=ec609ae000b3f7bba0e2d6d4c12c0b4e86bd2bfe Testing the implementation; fixing a bug. --- diff --git a/src/main/gov/nasa/jpf/listener/DPORStateReducerEfficient.java b/src/main/gov/nasa/jpf/listener/DPORStateReducerEfficient.java index 7512691..5948290 100644 --- a/src/main/gov/nasa/jpf/listener/DPORStateReducerEfficient.java +++ b/src/main/gov/nasa/jpf/listener/DPORStateReducerEfficient.java @@ -444,6 +444,11 @@ public class DPORStateReducerEfficient extends ListenerAdapter { } public HashMap getReachableTransitionsSummary(int stateId) { + // Just return an empty map if the state ID is not recorded yet + // This means that there is no reachable transition from this state + if (!graphSummary.containsKey(stateId)) { + return new HashMap<>(); + } return graphSummary.get(stateId); }