Update Android port
* java/org/gnu/emacs/EmacsService.java (readDirectoryEntry): Fix potential NULL dereference.
This commit is contained in:
parent
7ffc5f86e4
commit
e4f3a96709
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue