geforkt von Mirrors/Paper
Ursprung
c3fe3d093a
Commit
48bc16aa4e
20
Spigot-Server-Patches/Fix-NPE-Potential-in-CraftBanner.patch
Normale Datei
20
Spigot-Server-Patches/Fix-NPE-Potential-in-CraftBanner.patch
Normale Datei
@ -0,0 +1,20 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Aikar <aikar@aikar.co>
|
||||
Date: Wed, 15 Aug 2018 08:46:20 -0400
|
||||
Subject: [PATCH] Fix NPE Potential in CraftBanner
|
||||
|
||||
|
||||
diff --git a/src/main/java/org/bukkit/craftbukkit/block/CraftBanner.java b/src/main/java/org/bukkit/craftbukkit/block/CraftBanner.java
|
||||
index 4332a03a41..4488321017 100644
|
||||
--- a/src/main/java/org/bukkit/craftbukkit/block/CraftBanner.java
|
||||
+++ b/src/main/java/org/bukkit/craftbukkit/block/CraftBanner.java
|
||||
@@ -0,0 +0,0 @@ public class CraftBanner extends CraftBlockEntityState<TileEntityBanner> impleme
|
||||
public void load(TileEntityBanner banner) {
|
||||
super.load(banner);
|
||||
|
||||
- base = DyeColor.getByWoolData((byte) banner.color.getColorIndex());
|
||||
+ base = banner.color != null ? DyeColor.getByWoolData((byte) banner.color.getColorIndex()) : null; // Paper
|
||||
patterns = new ArrayList<Pattern>();
|
||||
|
||||
if (banner.patterns != null) {
|
||||
--
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren