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 @@ public final class EmacsService extends Service
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;