Merge pull request #123 from nooperation/fix_SplitMultibyteString_emptystring

Fix a bug in the SplitMultibyteString I added a little bit ago
This commit is contained in:
¡Cinder! ㊝
2025-06-29 00:27:38 -05:00
committed by GitHub

View File

@@ -1596,6 +1596,13 @@ namespace OpenMetaverse
{
throw new Exception("Split size must be at least 1 byte");
}
if (message.Length == 0)
{
return new List<string>()
{
string.Empty
};
}
var messageParts = new List<string>();
var messageBytes = System.Text.Encoding.UTF8.GetBytes(message);