Skip to content

Commit

Permalink
Fix NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
gquerret committed Nov 12, 2024
1 parent 442f565 commit ca8f96c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ public void setParentStatement(IStatementBlock statement) {

@Override
public List<String> getAnnotations() {
if (annotations == null)
return new ArrayList<>();
return annotations.stream() //
.map(AnnotationStatementNode::getAnnotationText) //
.collect(Collectors.toList());
Expand Down

0 comments on commit ca8f96c

Please sign in to comment.