From 67e0ef5b72ecfa92bdee0808fc12a809e9e17980 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Tue, 28 Jan 2025 20:51:42 +0100 Subject: fix(files): Do not array access null value Signed-off-by: Ferdinand Thiessen --- tests/lib/Files/Storage/Wrapper/EncodingTest.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests') diff --git a/tests/lib/Files/Storage/Wrapper/EncodingTest.php b/tests/lib/Files/Storage/Wrapper/EncodingTest.php index ae6a6ece742..b50d6f985f1 100644 --- a/tests/lib/Files/Storage/Wrapper/EncodingTest.php +++ b/tests/lib/Files/Storage/Wrapper/EncodingTest.php @@ -240,4 +240,12 @@ class EncodingTest extends \Test\Files\Storage\Storage { $entry = $this->instance->getMetaData('/test/' . self::NFD_NAME); $this->assertEquals(self::NFC_NAME, $entry['name']); } + + /** + * Regression test of https://github.com/nextcloud/server/issues/50431 + */ + public function testNoMetadata() { + $this->assertNull($this->instance->getMetaData('/test/null')); + } + } -- cgit v1.2.3