Update of /var/cvs/contributions/didactor2/src/core/java/nl/didactor/filter
In directory james.mmbase.org:/tmp/cvs-serv8538/filter

Modified Files:
        DidactorUrlConverter.java 
Log Message:



See also: 
http://cvs.mmbase.org/viewcvs/contributions/didactor2/src/core/java/nl/didactor/filter


Index: DidactorUrlConverter.java
===================================================================
RCS file: 
/var/cvs/contributions/didactor2/src/core/java/nl/didactor/filter/DidactorUrlConverter.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- DidactorUrlConverter.java   22 Oct 2008 08:37:18 -0000      1.8
+++ DidactorUrlConverter.java   22 Oct 2008 08:45:14 -0000      1.9
@@ -20,7 +20,7 @@
 
  *
  * @author Michiel Meeuwissen
- * @version $Id: DidactorUrlConverter.java,v 1.8 2008/10/22 08:37:18 michiel 
Exp $
+ * @version $Id: DidactorUrlConverter.java,v 1.9 2008/10/22 08:45:14 michiel 
Exp $
  */
 public class DidactorUrlConverter extends DirectoryUrlConverter {
     private static final Logger log = 
Logging.getLoggerInstance(DidactorUrlConverter.class);
@@ -58,9 +58,15 @@
     @Override protected String getFilteredInternalDirectoryUrl(List<String> 
path, Map<String, Object> blockParameters, Parameters frameworkParameters) 
throws FrameworkException {
         StringBuilder result = new StringBuilder("/shared/render.jspx");
         // article mode
-        if (path.size() == 0) throw new FrameworkException("No component in 
path");
+        if (path.size() == 0) {
+            log.debug("No component in path");
+            return null;
+        }
         Component component = 
ComponentRepository.getInstance().getComponent(path.get(0));
-        if (component == null) throw new FrameworkException("No didactor 
component in " + path);
+        if (component == null) {
+            log.debug("No didactor component in " + path);
+            return null;
+        }
         Setting<String> setting = (Setting<String>) 
component.getSetting("didactor_nodeprovider");
         String value = "education";
         HttpServletRequest request = 
frameworkParameters.get(Parameter.REQUEST);
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to