Author: hoang_to
Date: 2010-06-09 02:43:07 -0400 (Wed, 09 Jun 2010)
New Revision: 3269
Modified:
portal/trunk/component/scripting/src/main/java/org/exoplatform/groovyscript/text/TemplateService.java
Log:
GTNPORTAL-1280: Need to check template availability before remove
Modified:
portal/trunk/component/scripting/src/main/java/org/exoplatform/groovyscript/text/TemplateService.java
===================================================================
---
portal/trunk/component/scripting/src/main/java/org/exoplatform/groovyscript/text/TemplateService.java 2010-06-09
06:42:24 UTC (rev 3268)
+++
portal/trunk/component/scripting/src/main/java/org/exoplatform/groovyscript/text/TemplateService.java 2010-06-09
06:43:07 UTC (rev 3269)
@@ -201,8 +201,11 @@
try
{
TemplateStatistic app = statisticService.apps.get(name);
- ResourceResolver resolver = app.getResolver();
- templatesCache_.remove(resolver.createResourceKey(name));
+ if(app != null)
+ {
+ ResourceResolver resolver = app.getResolver();
+ templatesCache_.remove(resolver.createResourceKey(name));
+ }
}
catch (Exception e)
{
Show replies by date