diff --git a/AK/StringImpl.cpp b/AK/StringImpl.cpp index 0b27d60c498..a7e95b847b8 100644 --- a/AK/StringImpl.cpp +++ b/AK/StringImpl.cpp @@ -78,6 +78,9 @@ RefPtr StringImpl::create(const char* cstring, ShouldChomp shouldCho if (!cstring) return nullptr; + if (!*cstring) + return the_empty_stringimpl(); + return create(cstring, strlen(cstring), shouldChomp); }