network can be connected or disconnected but how can be null
Can you mention the code where it is mentioned?