Solved NPE on ping issue