Author: thomas.heute(a)jboss.com
Date: 2009-11-26 10:37:51 -0500 (Thu, 26 Nov 2009)
New Revision: 817
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/application/PortalRequestHandler.java
Log:
Fix so that it runs with a JDK5
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/application/PortalRequestHandler.java
===================================================================
---
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/application/PortalRequestHandler.java 2009-11-26
14:50:50 UTC (rev 816)
+++
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/application/PortalRequestHandler.java 2009-11-26
15:37:51 UTC (rev 817)
@@ -83,7 +83,7 @@
PortalApplication app =
controller.getApplication(PortalApplication.PORTAL_APPLICATION_ID);
PortalRequestContext context = new PortalRequestContext(app, req, res);
- if (context.getPortalOwner().isEmpty()) {
+ if (context.getPortalOwner().length() == 0) {
res.sendRedirect(req.getContextPath());
}
WebuiRequestContext.setCurrentInstance(context);
@@ -133,4 +133,4 @@
WebuiRequestContext.setCurrentInstance(null);
}
}
-}
\ No newline at end of file
+}
Show replies by date