[jboss-cvs] JBossAS SVN: r95667 - projects/jpa/trunk/impl/src/test/java/org/jboss/jpa/impl/test/deployment.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Oct 28 03:44:46 EDT 2009
Author: wolfc
Date: 2009-10-28 03:44:46 -0400 (Wed, 28 Oct 2009)
New Revision: 95667
Modified:
projects/jpa/trunk/impl/src/test/java/org/jboss/jpa/impl/test/deployment/PersistenceUnitInfoImplTestCase.java
Log:
JBJPA-15: fixed NPE when caching mode is unspecified (assertions)
Modified: projects/jpa/trunk/impl/src/test/java/org/jboss/jpa/impl/test/deployment/PersistenceUnitInfoImplTestCase.java
===================================================================
--- projects/jpa/trunk/impl/src/test/java/org/jboss/jpa/impl/test/deployment/PersistenceUnitInfoImplTestCase.java 2009-10-28 07:42:01 UTC (rev 95666)
+++ projects/jpa/trunk/impl/src/test/java/org/jboss/jpa/impl/test/deployment/PersistenceUnitInfoImplTestCase.java 2009-10-28 07:44:46 UTC (rev 95667)
@@ -24,6 +24,7 @@
import static junit.framework.Assert.assertNull;
import java.net.URL;
+import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
@@ -58,7 +59,7 @@
Properties props = new Properties();
ClassLoader classLoader = null;
URL persistenceUnitRootUrl = null;
- List<URL> jarFiles = null;
+ List<URL> jarFiles = new ArrayList<URL>();
Context ctx = new BrainlessContext() {
@Override
public Object lookup(String name) throws NamingException
More information about the jboss-cvs-commits
mailing list