jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r126277 - /incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/RepositoryStub.java
Date Mon, 24 Jan 2005 11:23:33 GMT
Author: mreutegg
Date: Mon Jan 24 03:23:29 2005
New Revision: 126277

URL: http://svn.apache.org/viewcvs?view=rev&rev=126277
Log:
RepositoryStub throws NullPointerException if repositoryStubImpl.properties is missing
Modified:
   incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/RepositoryStub.java

Modified: incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/RepositoryStub.java
Url: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/RepositoryStub.java?view=diff&rev=126277&p1=incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/RepositoryStub.java&r1=126276&p2=incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/RepositoryStub.java&r2=126277
==============================================================================
--- incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/RepositoryStub.java	(original)
+++ incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/RepositoryStub.java	Mon
Jan 24 03:23:29 2005
@@ -135,10 +135,10 @@
         }
 
         if (props == null) {
+            props = new Properties();
             InputStream is = RepositoryStub.class.getClassLoader().getResourceAsStream(STUB_IMPL_PROPS);
             if (is != null) {
                 try {
-                    props = new Properties();
                     props.load(is);
                 } catch (IOException e) {
                     throw new RepositoryStubException("Exception reading "

Mime
View raw message