掲示板
NPE in activities portlet
Hi,
the activities portlet produces an NPE if it is used with a portlet without defined icon. In the "/portal-master/portal-web/docroot/html/taglib/ui/social_activities/page.jsp"
...
Portlet portlet = PortletLocalServiceUtil.getPortletById(company.getCompanyId(), activityFeedEntry.getPortletId());
and then
<td class="portlet-icon">
<liferay-portlet:icon-portlet portlet="<%= portlet %>" />
</td>
Here a test is required to avoid NPE, or the "liferay-portlet:icon-portlet" should check if icon exists.
Thanks,
Morad.
the activities portlet produces an NPE if it is used with a portlet without defined icon. In the "/portal-master/portal-web/docroot/html/taglib/ui/social_activities/page.jsp"
...
Portlet portlet = PortletLocalServiceUtil.getPortletById(company.getCompanyId(), activityFeedEntry.getPortletId());
and then
<td class="portlet-icon">
<liferay-portlet:icon-portlet portlet="<%= portlet %>" />
</td>
Here a test is required to avoid NPE, or the "liferay-portlet:icon-portlet" should check if icon exists.
Thanks,
Morad.
9年前 に David H Nebinger によって更新されました。
RE: NPE in activities portlet
Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
The forum is not a place to report bugs, jira is the place to report bugs. Here the info will just disappear and nothing will be done to fix it.