From 6dd2ce940f3fe12d298052b0ec764a59e7a275a9 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 --- .../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 7991015c5d..0124bb18d1 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;