Why are you hashing a null string? aka String(). We could make that function support null strings, but I guess it hasn't needed to until now.
On Wed, Apr 13, 2011 at 5:00 PM, Mo, Zhenyao <zhen...@gmail.com> wrote: > In StringHash.h line 89 > > StringHash::hash(const String& key) { return key.impl()->hash(); } > > so it assumes String::impl() never returns NULL. > > However, I encountered a case where String::impl() is NULL, thus, crash. > > So what's wrong here? > _______________________________________________ > webkit-dev mailing list > webkit-dev@lists.webkit.org > http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev > _______________________________________________ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev