| author | Stephen Paul Weber
<singpolyma@singpolyma.net> 2025-12-28 03:27:09 UTC |
| committer | Stephen Paul Weber
<singpolyma@singpolyma.net> 2025-12-28 03:27:09 UTC |
| parent | 51b159ec68c352d2b9eff4529df4cec34cfa500d |
| borogove/Stanza.hx | +1 | -1 |
diff --git a/borogove/Stanza.hx b/borogove/Stanza.hx index 49b2c6f..c6e7303 100644 --- a/borogove/Stanza.hx +++ b/borogove/Stanza.hx @@ -276,7 +276,7 @@ class Stanza { public function getErrorText() { if (attr.get("type") == "error") { final error = getError(); - return error.text ?? error.condition ?? error.type; + return error?.text ?? error?.condition ?? error?.type ?? "error"; } return null;