Ok, I'll try a #java hint:

String whatEver = "hello world";

// stdlib

if (whatEver.isBlank()) -> possible NPE

// org.apache.commons commons-lang3

if (StringUtils.isBlank(whatEver)) -> never NPE

Want more programming hints? What language? Pls. respond.

Reply to this note

Please Login to reply.