ignoring fixGraph errors

This commit is contained in:
Jindra Petk
2013-06-29 19:10:46 +02:00
parent 9cb1944b5d
commit 71491b8d79

View File

@@ -67,11 +67,16 @@ public class Graph {
}
private void fixGraph(GraphPart part) {
while (fixGraphOnce(part, new ArrayList<GraphPart>(), false)) {
//if(true) return;
try{
while (fixGraphOnce(part, new ArrayList<GraphPart>(), false)) {
}
}catch(Exception | Error ex){
//ignore
}
}
private boolean fixGraphOnce(GraphPart part, List<GraphPart> visited, boolean doChildren) {
private boolean fixGraphOnce(GraphPart part, List<GraphPart> visited, boolean doChildren) {
if (visited.contains(part)) {
return false;
}