掲示板

NPE in activities portlet

9年前 に Morad Ahmad によって更新されました。

NPE in activities portlet

Junior Member 投稿: 71 参加年月日: 10/06/16 最新の投稿
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.
thumbnail
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.