diff options
Diffstat (limited to 'java')
| -rw-r--r-- | java/org/gnu/emacs/EmacsService.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/java/org/gnu/emacs/EmacsService.java b/java/org/gnu/emacs/EmacsService.java index 379b1d30eda..cee823abc83 100644 --- a/java/org/gnu/emacs/EmacsService.java +++ b/java/org/gnu/emacs/EmacsService.java | |||
| @@ -1503,9 +1503,13 @@ public final class EmacsService extends Service | |||
| 1503 | return entry; | 1503 | return entry; |
| 1504 | } | 1504 | } |
| 1505 | 1505 | ||
| 1506 | /* Skip this entry if its name cannot be represented. */ | 1506 | /* Skip this entry if its name cannot be represented. NAME |
| 1507 | can still be null here, since some Cursors are permitted to | ||
| 1508 | return NULL if INDEX is not a string. */ | ||
| 1507 | 1509 | ||
| 1508 | if (name.equals ("..") || name.equals (".") || name.contains ("/")) | 1510 | if (name == null || name.equals ("..") |
| 1511 | || name.equals (".") || name.contains ("/") | ||
| 1512 | || name.contains ("\0")) | ||
| 1509 | continue; | 1513 | continue; |
| 1510 | 1514 | ||
| 1511 | /* Now, look for its type. */ | 1515 | /* Now, look for its type. */ |