Author: julien_viet
Date: 2010-11-29 17:39:20 -0500 (Mon, 29 Nov 2010)
New Revision: 5360
Modified:
portal/branches/navcontroller/component/web/controller/src/main/java/org/exoplatform/web/controller/metadata/RouteDescriptor.java
Log:
path should always be there for a route descriptor
Modified:
portal/branches/navcontroller/component/web/controller/src/main/java/org/exoplatform/web/controller/metadata/RouteDescriptor.java
===================================================================
---
portal/branches/navcontroller/component/web/controller/src/main/java/org/exoplatform/web/controller/metadata/RouteDescriptor.java 2010-11-29
22:35:18 UTC (rev 5359)
+++
portal/branches/navcontroller/component/web/controller/src/main/java/org/exoplatform/web/controller/metadata/RouteDescriptor.java 2010-11-29
22:39:20 UTC (rev 5360)
@@ -55,6 +55,12 @@
public RouteDescriptor(String path)
{
+ if (path == null)
+ {
+ throw new NullPointerException("Was not expecting a null path");
+ }
+
+ //
this.path = path;
this.routeParams = new HashMap<QualifiedName, RouteParamDescriptor>();
this.pathParams = new HashMap<QualifiedName, PathParamDescriptor>();
Show replies by date