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>
1 file changed