Change code to avoid vulnerability and NullPointerExceptions