Enforce sign line nullability when setting line with Adventure Method (#9689)

This commit is contained in:
thelooter 2023-09-16 23:18:51 +02:00
parent 90b4e9c424
commit e5e00b653b

View File

@ -3313,6 +3313,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+
+ @Override
+ public void line(final int index, final net.kyori.adventure.text.@NotNull Component line) throws IndexOutOfBoundsException {
+ com.google.common.base.Preconditions.checkArgument(line != null, "Line cannot be null");
+ this.loadLines();
+ this.lines.set(index, line);
+ }