Author: ehillenius Date: Sun Apr 15 17:32:06 2007 New Revision: 529103 URL: http://svn.apache.org/viewvc?view=rev&rev=529103 Log: do NPE check where it makes sense
Modified: incubator/wicket/trunk/wicket/src/main/java/wicket/protocol/http/WebApplication.java Modified: incubator/wicket/trunk/wicket/src/main/java/wicket/protocol/http/WebApplication.java URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/main/java/wicket/protocol/http/WebApplication.java?view=diff&rev=529103&r1=529102&r2=529103 ============================================================================== --- incubator/wicket/trunk/wicket/src/main/java/wicket/protocol/http/WebApplication.java (original) +++ incubator/wicket/trunk/wicket/src/main/java/wicket/protocol/http/WebApplication.java Sun Apr 15 17:32:06 2007 @@ -270,12 +270,11 @@ */ public final void mount(IRequestTargetUrlCodingStrategy encoder) { - checkMountPath(encoder.getMountPath()); - if (encoder == null) { throw new IllegalArgumentException("Encoder must be not null"); } + checkMountPath(encoder.getMountPath()); getRequestCycleProcessor().getRequestCodingStrategy().mount(encoder); }