Skip to content

Commit

Permalink
Ternar operator fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jindrapetrik committed Jun 5, 2013
1 parent d4a6647 commit 448699d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions trunk/src/com/jpexs/decompiler/flash/graph/Graph.java
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,11 @@ protected boolean isEmpty(List<GraphTargetItem> output) {
if (output.isEmpty()) {
return true;
}
if (output.size() == 1) {
if (output.get(0) instanceof MarkItem) {
return true;
}
}
return false;
}

Expand Down Expand Up @@ -579,8 +584,9 @@ protected List<GraphTargetItem> printGraph(List<GraphPart> visited, List<Object>
output.add(new ScriptEndItem());
}
} catch (Exception ex) {
Logger.getLogger(Graph.class.getName()).log(Level.SEVERE, "error during printgraph", ex);
return ret;
//Logger.getLogger(Graph.class.getName()).log(Level.SEVERE, "error during printgraph", ex);
throw ex;
//return ret;
}
}
if (part.nextParts.size() == 2) {
Expand Down

0 comments on commit 448699d

Please sign in to comment.