FELIX-3967 fix NPE in DependencyManager... isSatisfied
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1455425 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/scr/src/main/java/org/apache/felix/scr/impl/manager/DependencyManager.java b/scr/src/main/java/org/apache/felix/scr/impl/manager/DependencyManager.java
index 5f75d63..0b04d41 100644
--- a/scr/src/main/java/org/apache/felix/scr/impl/manager/DependencyManager.java
+++ b/scr/src/main/java/org/apache/felix/scr/impl/manager/DependencyManager.java
@@ -1792,6 +1792,7 @@
ServiceTracker<T, RefPair<T>> tracker = new ServiceTracker<T, RefPair<T>>( m_componentManager.getActivator().getBundleContext(), m_targetFilter, customizer, initialActive );
customizer.setTracker( tracker );
trackerRef.set( tracker );
+ customizerRef.set( customizer );
registered = true;
tracker.open( m_componentManager.getTrackingCount() );
customizer.setTrackerOpened();
@@ -1839,7 +1840,6 @@
customizer = new SingleDynamicCustomizer();
}
}
- customizerRef.set( customizer );
return customizer;
}