bug fix for empty graphs
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2760 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
This commit is contained in:
parent
11f7a55b2e
commit
fc495cf49e
|
@ -100,8 +100,10 @@ public class BFSIterator<T> implements Iterator<T> {
|
|||
}
|
||||
}
|
||||
index = 0;
|
||||
T current = Q.get(0);
|
||||
visitChildren(current);
|
||||
if (Q.size() > 0) {
|
||||
T current = Q.get(0);
|
||||
visitChildren(current);
|
||||
}
|
||||
}
|
||||
|
||||
private void visitChildren(T N) {
|
||||
|
|
Loading…
Reference in New Issue