diff --git a/src/pxb/android/StringItems.java b/src/pxb/android/StringItems.java index edf026a..abdb849 100644 --- a/src/pxb/android/StringItems.java +++ b/src/pxb/android/StringItems.java @@ -87,7 +87,7 @@ public int getSize() { public void prepare() throws IOException { for (StringItem s : this) { - if (s.data.length() > 0x7FFF) { + if (s.data != null && s.data.length() > 0x7FFF) { useUTF8 = false; } }