Why, Google, Why?

I’ve been banging my head against this one for over a day now. My loop that was supposed to run when the value that came back from the cookie was null wasn’t running. It was only after exhausting every other option that I discovered that in GWT (Google Web Toolkit), Cookies.getCookie(cookieName) doesn’t return null when the cookie isn’t found, it returns the string “null”. You know, four characters, starts with the letter “n”. WTF? That’s just plain bizarre.