servlets ui
authorDmitry Avdeev <Dmitry.Avdeev@jetbrains.com>
Thu, 22 Apr 2010 14:41:28 +0000 (18:41 +0400)
committerDmitry Avdeev <Dmitry.Avdeev@jetbrains.com>
Thu, 22 Apr 2010 14:41:28 +0000 (18:41 +0400)
java/java-impl/src/com/intellij/psi/util/CreateClassUtil.java

index 1aa835653d8576013bd3df13e2562da4f230def4..3bc00b6562743ba0e3b7bf95f27ec59bee0ad661 100644 (file)
@@ -91,6 +91,7 @@ public class CreateClassUtil {
       else {
         final FileTemplateManager fileTemplateManager = FileTemplateManager.getInstance();
         FileTemplate fileTemplate = fileTemplateManager.getJ2eeTemplate(templateName);
+        LOG.assertTrue(fileTemplate != null, templateName + " not found");
         final String text = fileTemplate.getText(attributes);
         aClass = JavaCreateFromTemplateHandler.createClassOrInterface(project, directory, text, true, fileTemplate.getExtension());
       }