Fórumok

NPE in activities portlet

Morad Ahmad, módosítva 9 év-val korábban

NPE in activities portlet

Junior Member Bejegyzések: 71 Csatlakozás dátuma: 2010.06.16. Legújabb bejegyzések
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
David H Nebinger, módosítva 9 év-val korábban

RE: NPE in activities portlet

Liferay Legend Bejegyzések: 14916 Csatlakozás dátuma: 2006.09.02. Legújabb bejegyzések
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.