avoid NullPointer exception when is unable-networks