DO NOT MERGE: OMAParser: throw IOException when parsing a null XML string

This avoids a NullPointerException when parsing a null XML string.
OMAParser.parse is only used by PasspointManagementObjectManager for
adding/building/modifying a HomeSP from a XML string.

It is fine to use IOException since it is already being handled
gracefully by its upstream callers.

Bug: 31497435
Test: unit tests
Test: Verify system server crashes when executing the command below without the fix
      and doesn't crash with the fix:
              "adb shell service call wifi 8 i32 0"

Change-Id: If2ad13b8573d49ba0ccbea2427f3c63d841f866d
(cherry picked from commit 309374f8d5839a5af7399aced0e976241b0ef62d)
2 files changed
tree: d68f28b2113ef4ce0a57b151c2d7cf10ffdb77bd
  1. service/