diff --git a/AK/Utf32View.h b/AK/Utf32View.h index 89c0eefcea..25f4c4a828 100644 --- a/AK/Utf32View.h +++ b/AK/Utf32View.h @@ -39,6 +39,7 @@ public: : m_codepoints(codepoints) , m_length(length) { + ASSERT(codepoints || length == 0); } const u32* codepoints() const { return m_codepoints; }