Permalink
Browse files

I was pretty stupid to blindly follow mad advice from Eclipse. I real…

…ly don't understand why it find an error there, nevermind

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1449286 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent f19b759 commit edd7ff5d4242c1ac1c1611d34b8126fd28aac1dd @JacquesLeRoux JacquesLeRoux committed Feb 23, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 applications/product/src/org/ofbiz/product/category/CatalogUrlServlet.java
@@ -156,7 +156,7 @@ public void destroy() {
public static String makeCatalogUrl(HttpServletRequest request, String productId, String currentCategoryId, String previousCategoryId) {
StringBuilder urlBuilder = new StringBuilder();
- urlBuilder.append(((HttpServletRequest) request.getSession().getServletContext()).getContextPath());
+ urlBuilder.append(request.getSession().getServletContext().getContextPath());
if (urlBuilder.charAt(urlBuilder.length() - 1) != '/') {
urlBuilder.append("/");
}

0 comments on commit edd7ff5

Please sign in to comment.