getWifiActivityEnergyInfoAsync: throw NPE instead of IAE

Null check should throw NullPointerException
instead of IllegalArgumentException.

Bug: 149015294
Test: atest WifiManagerTest
Change-Id: I6d6f495a1e2e56d02c0709e1b7160e7b1ffb5737
2 files changed