From 736edae2ad243f6eb3e7b01ca9b6266745cdeb24 Mon Sep 17 00:00:00 2001 From: mat Date: Sun, 11 Jan 2026 23:01:30 -1030 Subject: add fuzzer for azalea-protocol and fix a few panics --- azalea-chat/src/component.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'azalea-chat') diff --git a/azalea-chat/src/component.rs b/azalea-chat/src/component.rs index 637aafc7..c64ee559 100644 --- a/azalea-chat/src/component.rs +++ b/azalea-chat/src/component.rs @@ -408,6 +408,9 @@ impl<'de> Deserialize<'de> for FormattedText { )); } let json_array = json.as_array().unwrap(); + if json_array.is_empty() { + return Ok(FormattedText::default()); + } // the first item in the array is the one that we're gonna return, the others // are siblings let mut component = -- cgit v1.2.3