Skip to content

Commit

Permalink
Fix for issue #412: prevent NPEs due to unfinished comment support
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-milles committed Mar 12, 2018
1 parent 2a2c327 commit ff833b2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
import java.net.URL;
import java.security.AccessController;
import java.security.PrivilegedAction;
import java.util.Collections;
import java.util.List;

/**
Expand Down Expand Up @@ -88,13 +89,13 @@ public class SourceUnit extends ProcessingUnit {
// GRECLIPSE add
public boolean isReconcile;

private List<Comment> comments;
public List<Comment> getComments() {
return comments;
}
public void setComments(List<Comment> comments) {
this.comments = comments;
}
private List<Comment> comments = Collections.emptyList();
// GRECLIPSE end

/**
Expand Down

0 comments on commit ff833b2

Please sign in to comment.