fixed another java null point exception