1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2025-01-30 19:40:37 +01:00

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

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);
+ }