Simon Laws wrote:
Looking at the stack it looks like a Java implementation. But you're right that there is a suspicious piece of code in AbstractScopeContainer..protected InstanceWrapper createInstanceWrapper() throws TargetResolutionException { ImplementationProvider implementationProvider = component.getImplementationProvider(); if (implementationProvider instanceof ScopedImplementationProvider) { return ((ScopedImplementationProvider)implementationProvider).createInstanceWrapper(); } return null; } Where, in the case of the CompositeScopeContainer, the null is not checked for. Simon
I agree that this code looks suspicious. However, the null won't be returned unless implementationProvider is not an instance of ScopedImplementationProvider. JavaImplementationProvider does implement the ScopedImplementationProvider interface, so this code should not return null but should call createInstanceWrapper(). From a quick look at the createInstanceWrapper() code, this call should always return non-null. Simon
