Author: dashorst Date: Mon Apr 16 05:07:09 2007 New Revision: 529213 URL: http://svn.apache.org/viewvc?view=rev&rev=529213 Log: useragent NPE fix
Modified: incubator/wicket/sandbox/dashorst/wicket-1.3-20061204-patched/wicket/src/main/java/wicket/protocol/http/request/WebClientInfo.java Modified: incubator/wicket/sandbox/dashorst/wicket-1.3-20061204-patched/wicket/src/main/java/wicket/protocol/http/request/WebClientInfo.java URL: http://svn.apache.org/viewvc/incubator/wicket/sandbox/dashorst/wicket-1.3-20061204-patched/wicket/src/main/java/wicket/protocol/http/request/WebClientInfo.java?view=diff&rev=529213&r1=529212&r2=529213 ============================================================================== --- incubator/wicket/sandbox/dashorst/wicket-1.3-20061204-patched/wicket/src/main/java/wicket/protocol/http/request/WebClientInfo.java (original) +++ incubator/wicket/sandbox/dashorst/wicket-1.3-20061204-patched/wicket/src/main/java/wicket/protocol/http/request/WebClientInfo.java Mon Apr 16 05:07:09 2007 @@ -66,6 +66,7 @@ .getHttpServletRequest(); userAgent = httpServletRequest.getHeader("User-Agent"); properties.setProperty(ClientProperties.REMOTE_ADDRESS,httpServletRequest.getRemoteAddr()); + if(userAgent != null) init(); }