Closed bjhargrave closed 5 years ago
Comment author: @tjwatson
ServiceEvents are fired by the framework while not holding any locks. So when the log implementation gets the ServiceEvent to map to a LogEntry it will attempt to get the Bundle object for the LogEntry by calling BundleEvent.getServiceReference().getBundle(). But ServiceReference.getBundle() returns null if the service is unregistered. So if another thread unregisters the event before the Bundle is saved from the Service event then the LogEntry.getBundle() may end up being null. But the LogEntry doc does allow null from getBundle().
Comment author: @tjwatson
Looks like the javadoc for LogEntry.getBundle does allow null to be returned.
Original bug ID: BZ#3113 From: @tjwatson Reported version: R7