From 26762d4d80d5d92bacb65c3635fbd8bda4802ad8 Mon Sep 17 00:00:00 2001 From: crschnick Date: Sat, 31 Aug 2024 08:21:01 +0000 Subject: [PATCH] Ignore invalid users/groups file --- .../java/io/xpipe/app/browser/fs/OpenFileSystemCache.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/xpipe/app/browser/fs/OpenFileSystemCache.java b/app/src/main/java/io/xpipe/app/browser/fs/OpenFileSystemCache.java index d936992c..9a750cdb 100644 --- a/app/src/main/java/io/xpipe/app/browser/fs/OpenFileSystemCache.java +++ b/app/src/main/java/io/xpipe/app/browser/fs/OpenFileSystemCache.java @@ -60,7 +60,7 @@ public class OpenFileSystemCache extends ShellControlCache { var split = s.split(":"); try { users.putIfAbsent(Integer.parseInt(split[2]), split[0]); - } catch (NumberFormatException ignored) {} + } catch (Exception ignored) {} }); if (users.isEmpty()) { @@ -81,7 +81,7 @@ public class OpenFileSystemCache extends ShellControlCache { var split = s.split(":"); try { groups.putIfAbsent(Integer.parseInt(split[2]), split[0]); - } catch (NumberFormatException ignored) {} + } catch (Exception ignored) {} }); if (groups.isEmpty()) {