Throw exception if entry is not found in adjList.

This commit is contained in:
Achim D. Brucker 2016-08-28 01:59:37 +01:00
parent 15ef8cd877
commit c150f00d9d
1 changed files with 3 additions and 1 deletions

View File

@ -472,7 +472,9 @@ public class SuperGraphUtil {
log.debug(" searching for "+currentId+" in adjList.");
ArrayList<Integer> children = adjList.get(currentId);
assert children != null : "No entry found in adjList for "+currentId;
if (null == children) {
throw new RuntimeException ("No entry found in adjList for "+currentId);
}
HashSet<ArrayList<Integer>> currentPaths = new HashSet<ArrayList<Integer>>();
for(int child : children) {