velocity-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sdumit...@apache.org
Subject svn commit: r1725215 - /velocity/engine/trunk/velocity-engine-core/src/main/java/org/apache/velocity/util/introspection/AbstractChainableUberspector.java
Date Mon, 18 Jan 2016 10:21:18 GMT
Author: sdumitriu
Date: Mon Jan 18 10:21:18 2016
New Revision: 1725215

URL: http://svn.apache.org/viewvc?rev=1725215&view=rev
Log:
[misc] Catch exceptions raised during chainable uberspector initialization

Modified:
    velocity/engine/trunk/velocity-engine-core/src/main/java/org/apache/velocity/util/introspection/AbstractChainableUberspector.java

Modified: velocity/engine/trunk/velocity-engine-core/src/main/java/org/apache/velocity/util/introspection/AbstractChainableUberspector.java
URL: http://svn.apache.org/viewvc/velocity/engine/trunk/velocity-engine-core/src/main/java/org/apache/velocity/util/introspection/AbstractChainableUberspector.java?rev=1725215&r1=1725214&r2=1725215&view=diff
==============================================================================
--- velocity/engine/trunk/velocity-engine-core/src/main/java/org/apache/velocity/util/introspection/AbstractChainableUberspector.java
(original)
+++ velocity/engine/trunk/velocity-engine-core/src/main/java/org/apache/velocity/util/introspection/AbstractChainableUberspector.java
Mon Jan 18 10:21:18 2016
@@ -54,7 +54,12 @@ public abstract class AbstractChainableU
     public void init()
     {
         if (this.inner != null) {
-            this.inner.init();
+            try {
+                this.inner.init();
+            } catch (Exception e) {
+                this.log.error(e.getMessage(), e);
+                this.inner = null;
+            }
         }
     }
 



Mime
View raw message