diff --git a/spine-libgdx/src/com/esotericsoftware/spine/SkeletonBinary.java b/spine-libgdx/src/com/esotericsoftware/spine/SkeletonBinary.java index 6d22349e9..c0df0092c 100644 --- a/spine-libgdx/src/com/esotericsoftware/spine/SkeletonBinary.java +++ b/spine-libgdx/src/com/esotericsoftware/spine/SkeletonBinary.java @@ -190,7 +190,7 @@ public class SkeletonBinary { switch (AttachmentType.values()[input.readByte()]) { case region: String path = input.readString(); - if (path.length() == 0) path = name; + if (path == null) path = name; RegionAttachment region = attachmentLoader.newRegionAttachment(skin, name, path); if (region == null) return null; region.setX(input.readFloat() * scale);