bug fix: permission ACCESS_NETWORK_STATE, null check