Fix NPE when passing a null filter, which is marked as allowed.
--- a/core/com.nokia.carbide.templatewizard/src/com/nokia/carbide/internal/api/template/engine/TemplateEngine.java Mon Nov 16 10:07:22 2009 -0600
+++ b/core/com.nokia.carbide.templatewizard/src/com/nokia/carbide/internal/api/template/engine/TemplateEngine.java Mon Nov 16 10:10:51 2009 -0600
@@ -169,7 +169,7 @@
for (Iterator<ITemplate> iter = templates.iterator(); iter.hasNext();) {
ITemplate template = iter.next();
if (isEnabledActivity(template.getTemplateId()) &&
- filter.accept(template)) {
+ (filter == null || filter.accept(template))) {
filteredTemplates.add(template);
}
}