2003/12/13 08:13:32
[org.ibex.core.git] / src / org / xwt / Res.java
index f37d758..c55f1ac 100644 (file)
@@ -1,3 +1,4 @@
+// FIXME
 // Copyright 2003 Adam Megacz, see the COPYING file for licensing [GPL]
 package org.xwt;
 
@@ -28,8 +29,13 @@ public abstract class Res extends JS {
 
     public Object get(Object key) {
         if ("".equals(key)) {
-            Template t = Template.getTemplate(addExtension(".xwt"));
-            return t == null ? null : t.getStatic();
+            try {
+                Template t = Template.getTemplate(addExtension(".xwt"));
+                return t == null ? null : t.getStatic();
+            } catch (Exception e) {
+                Log.log(this, e);
+                return null;
+            }
         }
         Object ret = refCache == null ? null : refCache.get(key);
         if (ret != null) return ret;