Browse files

LPS-26744 Check NPE

  • Loading branch information...
1 parent 0c949fa commit b154b96f9b1c4110935dfa485e315395587125ac @shuyangzhou committed Apr 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 portal-impl/src/com/liferay/portlet/PortletRequestImpl.java
View
2 portal-impl/src/com/liferay/portlet/PortletRequestImpl.java
@@ -836,7 +836,7 @@ protected String removePortletNamespace(
InvokerPortlet invokerPortlet, String portletNamespace, String name) {
if (name.startsWith(portletNamespace) &&
- !invokerPortlet.isFacesPortlet()) {
+ ((invokerPortlet == null) || !invokerPortlet.isFacesPortlet())) {
name = name.substring(portletNamespace.length());
}

0 comments on commit b154b96

Please sign in to comment.