diff --git a/AK/String.cpp b/AK/String.cpp index 54c7fd742fa72a47a1a8e97fcf292bb958b644f9..4657835b8ddae253eb7a66a6ed35fb59a8be9e95 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; }