mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-01 09:51:22 -08:00
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 @@ 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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue