Skip to content

Commit 5c0e6e3

Browse files
committed
Fix OOB coming while Urdu text rendering
DEVSIX-6314
1 parent 6b14f9f commit 5c0e6e3

File tree

1 file changed

+1
-1
lines changed
  • io/src/main/java/com/itextpdf/io/font/otf

1 file changed

+1
-1
lines changed

io/src/main/java/com/itextpdf/io/font/otf/Glyph.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ public String getUnicodeString() {
304304
* @return the Unicode char sequence that corresponds to this glyph
305305
*/
306306
public char[] getUnicodeChars() {
307-
if (chars != null) {
307+
if (chars != null && chars.length > 0) {
308308
return chars;
309309
} else {
310310
return REPLACEMENT_CHARACTERS;

0 commit comments

Comments
 (0)