DDF-953 fixed null pointer and open stream