Fix Upload cause NullPointerException