Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixed "Attempt to process expression twice aborted. " on if/elses
  • Loading branch information
ryaneberly committed Jan 6, 2017
1 parent 180ee28 commit 882d938
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/com/cflint/CFLint.java
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,9 @@ private String shortSource(final Source source, final int line) {
Set<CFScriptStatement> processed = new HashSet<CFScriptStatement>();

private void process(final CFScriptStatement expression, Context context) {
if(expression ==null){
return;
}
if(processed.contains(expression)){
System.err.println("Attempt to process expression twice aborted. This may be a parsing bug.");
return;
Expand Down

0 comments on commit 882d938

Please sign in to comment.