[Bug]: Getting NPE when calling attachmentValue()
on AnnotationAttachmentSymbol
#42916
Labels
Area/Compiler
Area/SemanticAPI
Semantic API Related Issues #Compiler
Team/CompilerFE
All issues related to Language implementation and Compiler, this exclude run times.
Type/Bug
Description
$Subject
Steps to Reproduce
Seems like we are returning
Optional.of(null)
when the annotation is not constant :ballerina-lang/compiler/ballerina-lang/src/main/java/io/ballerina/compiler/api/impl/symbols/BallerinaAnnotationAttachmentSymbol.java
Line 68 in 4ac37ad
Affected Version(s)
Ballerina Swan Lake Update 9
OS, DB, other environment details and versions
No response
Related area
-> Compilation
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response
The text was updated successfully, but these errors were encountered: