how to fix null dereference in java fortify