From 9b5c112e5cfe10e5964fad04b81dc5c725c91e3d Mon Sep 17 00:00:00 2001 From: sk89q Date: Tue, 15 Jul 2014 19:53:15 -0700 Subject: [PATCH] Let NBT Tag(String name) accept a null name. --- src/main/java/com/sk89q/jnbt/Tag.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/sk89q/jnbt/Tag.java b/src/main/java/com/sk89q/jnbt/Tag.java index 2ab0861ea..e0d7d3f4b 100644 --- a/src/main/java/com/sk89q/jnbt/Tag.java +++ b/src/main/java/com/sk89q/jnbt/Tag.java @@ -19,8 +19,6 @@ package com.sk89q.jnbt; -import static com.google.common.base.Preconditions.checkNotNull; - /** * Represents a NBT tag. */ @@ -41,7 +39,9 @@ public abstract class Tag { * @param name the name */ Tag(String name) { - checkNotNull(name); + if (name == null) { + name = ""; + } this.name = name; }