From 84ed6543aec0cd534a20842aad6475136c44d463 Mon Sep 17 00:00:00 2001 From: Mark Fisher Date: Sat, 6 Jun 2009 01:37:15 +0000 Subject: [PATCH] fixed NPE on latch in test git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1314 50f2f4bb-b051-0410-bef5-90022cba6387 --- .../annotation/AsyncAnnotationBeanPostProcessorTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.springframework.context/src/test/java/org/springframework/scheduling/annotation/AsyncAnnotationBeanPostProcessorTests.java b/org.springframework.context/src/test/java/org/springframework/scheduling/annotation/AsyncAnnotationBeanPostProcessorTests.java index 7991015c5d0..0124bb18d1d 100644 --- a/org.springframework.context/src/test/java/org/springframework/scheduling/annotation/AsyncAnnotationBeanPostProcessorTests.java +++ b/org.springframework.context/src/test/java/org/springframework/scheduling/annotation/AsyncAnnotationBeanPostProcessorTests.java @@ -100,7 +100,7 @@ public class AsyncAnnotationBeanPostProcessorTests { private Thread thread; - private CountDownLatch latch; + private final CountDownLatch latch = new CountDownLatch(1); public Thread getThread() { return this.thread;