I imported package in drools import code block to handle NULL or NOT NULL.for examaples "import org.apache.commons.lang3.StringUtils;" package before rule block,use isBlank/isNotBlank function in rule block to handle the Null problome.