diff --git a/AK/String.cpp b/AK/String.cpp index 54c7fd742fa..4657835b8dd 100644 --- a/AK/String.cpp +++ b/AK/String.cpp @@ -133,7 +133,7 @@ int String::to_int(bool& ok) const int value = 0; int i = 0; - if (is_null()) { + if (is_empty()) { ok = false; return 0; }