diff --git a/AK/String.h b/AK/String.h index 56ef4162001..c6e6e468b45 100644 --- a/AK/String.h +++ b/AK/String.h @@ -160,6 +160,7 @@ public: [[nodiscard]] ALWAYS_INLINE const char& operator[](size_t i) const { + VERIFY(!is_null()); return (*m_impl)[i]; }