Skip to content

Commit 93a62e0

Browse files
Ensure parsed binding value can't be null
1 parent 334da07 commit 93a62e0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ng-appserver/src/main/java/ng/appserver/templating/parser/NGDeclaration.java

+6-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@
1313

1414
public record NGDeclaration( boolean isInline, String name, String type, Map<String, NGBindingValue> bindings ) {
1515

16-
public record NGBindingValue( boolean isQuoted, String value ) {}
16+
public record NGBindingValue( boolean isQuoted, String value ) {
17+
18+
public NGBindingValue {
19+
Objects.requireNonNull( value );
20+
}
21+
}
1722

1823
public NGDeclaration {
1924
Objects.requireNonNull( name );

0 commit comments

Comments
 (0)