Don't use string == null, it is true for empty strings since null and an empty string are almost interchangable.

You can try if(string is null) - is instead of ==. Though usually in D, I just if(string.length == 0) and treat empty and null the same way.

Reply via email to