Throw exception if entry is not found in adjList.
This commit is contained in:
parent
15ef8cd877
commit
c150f00d9d
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue