geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r502231 - /geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/util/LazyProxy.groovy
Date Thu, 01 Feb 2007 14:40:14 GMT
Author: jdillon
Date: Thu Feb  1 06:40:13 2007
New Revision: 502231

URL: http://svn.apache.org/viewvc?view=rev&rev=502231
Log:
Make sure the factory returns non-null

Modified:
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/util/LazyProxy.groovy

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/util/LazyProxy.groovy
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/util/LazyProxy.groovy?view=diff&rev=502231&r1=502230&r2=502231
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/util/LazyProxy.groovy
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/util/LazyProxy.groovy
Thu Feb  1 06:40:13 2007
@@ -56,6 +56,8 @@
         }
         
         obj = factory.call()
+        assert obj != null
+        
         reference = new SoftReference(obj)
         
         return obj



Mime
View raw message