Fixed null pointer bug on devices without 3g