Fix null pointer exception of calling NetworkInfo.mState.name()

Remove setting nai.networkInfo as null temporarily to identify the new
created NetworkAgent, avoiding timing issue triggered by constructor
NetworkInfo(null).

Bug: 135569043
Test: Mannual test, network can work normally
Change-Id: I123ef9e97df2bccdd9528c0e894283c66d053890
2 files changed
tree: 371acf363199736d002b8548a94caa930805fba5
  1. core/
  2. services/
  3. tests/