Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

NPE when using AbstractDependencyInjecttionSpringContextTests #36

Merged
merged 1 commit into from

3 participants

@thomast74

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.
View
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.