Update Android port
* java/org/gnu/emacs/EmacsService.java (readDirectoryEntry): Fix potential NULL dereference.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user