commit | bf37749bff9941ec20833ebaa8c4f77260df2b3e | [log] [tgz] |
---|---|---|
author | Alex Blewitt <alex.blewitt@gmail.com> | Fri Sep 11 22:06:55 2015 +0100 |
committer | Alex Blewitt <alex.blewitt@gmail.com> | Fri Sep 11 22:06:55 2015 +0100 |
tree | 396c8fbad169185eb8730654f68c141dfd15bf00 | |
parent | d611bc7c8b5ec1f7ac7bf3d959255d78f584d03b [diff] |
Bug 477243 - Handle NullPointerException in getURLConverter When getURLConverter is called after the bundle has been shut down, a NullPointerException is generated because getBundleContext returns null. Handle this by explicitly testing the bundle context and return early instead of causing a NullPointerException. Change-Id: Ia3312d3255a054154947d56de8c3478a00804364 Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>