This is an automated email from the ASF dual-hosted git repository.
zstan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git
The following commit(s) were added to refs/heads/master by this push:
new 00ce56d90bd IGNITE-28951 Fixed NPE in
TcpDiscoverySharedFsIpFinder#getRegisteredAddresses() for File.list() == null
(#13452)
00ce56d90bd is described below
commit 00ce56d90bd867000cfc007a8628c9986b2106d9
Author: Mathias Roeppischer <[email protected]>
AuthorDate: Mon Aug 10 10:10:41 2026 +0200
IGNITE-28951 Fixed NPE in
TcpDiscoverySharedFsIpFinder#getRegisteredAddresses() for File.list() == null
(#13452)
---
.../tcp/ipfinder/sharedfs/TcpDiscoverySharedFsIpFinder.java | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git
a/modules/core/src/main/java/org/apache/ignite/spi/discovery/tcp/ipfinder/sharedfs/TcpDiscoverySharedFsIpFinder.java
b/modules/core/src/main/java/org/apache/ignite/spi/discovery/tcp/ipfinder/sharedfs/TcpDiscoverySharedFsIpFinder.java
index a2b035ec6cc..e3fe39dcfb2 100644
---
a/modules/core/src/main/java/org/apache/ignite/spi/discovery/tcp/ipfinder/sharedfs/TcpDiscoverySharedFsIpFinder.java
+++
b/modules/core/src/main/java/org/apache/ignite/spi/discovery/tcp/ipfinder/sharedfs/TcpDiscoverySharedFsIpFinder.java
@@ -185,8 +185,13 @@ public class TcpDiscoverySharedFsIpFinder extends
TcpDiscoveryIpFinderAdapter {
initFolder();
Collection<InetSocketAddress> addrs = new LinkedList<>();
+ String[] fileNames = folder.list();
- for (String fileName : folder.list()) {
+ if (fileNames == null)
+ throw new IgniteSpiException("Failed to list files in shared FS
directory: " + folder
+ + ". Verify that the directory exists and the shared
filesystem is accessible.");
+
+ for (String fileName : fileNames) {
StringTokenizer st = new StringTokenizer(fileName, DELIM);
if (st.countTokens() != 2)