OSDN Git Service

Fix crash in PacManager
authorJason Monk <jmonk@google.com>
Fri, 19 Sep 2014 16:46:19 +0000 (12:46 -0400)
committerJason Monk <jmonk@google.com>
Fri, 19 Sep 2014 18:34:32 +0000 (18:34 +0000)
commitf6b46cb8b108cc8feee8ae68b979271fd6f72bf5
tree5eadade83c5c89aa83fd309c3479cce04df5d9ee
parentb6812b64c42ee15a1afa295fe341103fe02006ae
Fix crash in PacManager

The PacManager would clear the pac url by setting it to null, however
everywhere else, pac url is cleared to Uri.EMPTY.  This sometimes leads
to an NPE when PAC is set and cleared rapidly and take down the whole
framework.

Bug: 17581527
Change-Id: I84ce215f4f6a8a7e804372fc0a1e20ac609a21f1
services/core/java/com/android/server/connectivity/PacManager.java