From 209f284ca34e95a1491d1e7a82b56d13fb3b6be6 Mon Sep 17 00:00:00 2001 From: wangyuyang Date: Mon, 3 Jun 2024 10:26:14 +0800 Subject: [PATCH] fix NPE for getListing --- .../src/main/java/alluxio/underfs/tos/TOSUnderFileSystem.java | 1 + 1 file changed, 1 insertion(+) diff --git a/underfs/tos/src/main/java/alluxio/underfs/tos/TOSUnderFileSystem.java b/underfs/tos/src/main/java/alluxio/underfs/tos/TOSUnderFileSystem.java index b4f527bb088b..6853c5a0b63f 100644 --- a/underfs/tos/src/main/java/alluxio/underfs/tos/TOSUnderFileSystem.java +++ b/underfs/tos/src/main/java/alluxio/underfs/tos/TOSUnderFileSystem.java @@ -158,6 +158,7 @@ public boolean createEmptyObject(String key) { PutObjectInput input = new PutObjectInput().setBucket(mBucketName).setKey(key).setOptions(metaRequestOptions) .setContent(stream); + mClient.putObject(input); return true; } catch (TosException e) { LOG.error("Failed to create object: {}", key, e);