Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


NPE when using AbstractDependencyInjecttionSpringContextTests #36

merged 1 commit into from

3 participants


and Autowire within test class

@bbaia bbaia merged commit fc22f02 into from
@lahma lahma added this to the 2.0 milestone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 27, 2013
  1. @thomast74
This page is out of date. Refresh to see the latest.
6 src/Spring/Spring.Core/Objects/Factory/Attributes/AutowiredAttributeObjectPostProcessor.cs
@@ -369,9 +369,13 @@ private InjectionMetadata BuildAutowiringMetadata(Type objectType)
/// </summary>
private static void RegisterDependentObjects(string objectName, IList autowiredObjectNames)
- if (objectName == null) return;
+ if (objectName == null)
+ return;
var objectDefinition = _objectFactory.GetObjectDefinition(objectName) as RootObjectDefinition;
+ if (objectDefinition == null)
+ return;
IList<string> dependsOn = new List<string>(objectDefinition.DependsOn);
foreach (var name in autowiredObjectNames)
Something went wrong with that request. Please try again.