Update Android port

* java/org/gnu/emacs/EmacsService.java (readDirectoryEntry): Fix
potential NULL dereference.
This commit is contained in:
Po Lu 2023-08-06 21:53:13 +08:00
parent 7ffc5f86e4
commit e4f3a96709

View file

@ -1522,7 +1522,8 @@ In addition, arbitrary runtime exceptions (such as
return entry;
}
if (type.equals (Document.MIME_TYPE_DIR))
if (type != null
&& type.equals (Document.MIME_TYPE_DIR))
entry.d_type = 1;
entry.d_name = name;
return entry;