-
Type:
Bug
-
Status: Closed
-
Resolution: Inactive
-
Affects Version/s: 6.0.4 GA, 6.0.5 GA, 6.0.6 GA
-
Fix Version/s: --Sprint 12/11, 6.1.0 CE RC1
-
Component/s: Core Infrastructure > Service Builder
-
Labels:None
When defining a service like this
<entity name="CalEventInvitation" ...
<column name="calEventId" type="long" />
<column name="inviteeUserId" type="Long" convert-null="false" />
<finder name="CalEventIdAndInviteeUserId" return-type="CalEventInvitation">
<finder-column name="calEventId" />
<finder-column name="inviteeUserId" />
</finder>
....
</entity>
ServiceBuilder will create a class called CalEventInvitationPersistenceImpl that contains the following lines
FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_CALEVENTIDANDINVITEEUSERID,
new Object[]
);
Because originalInviteeUserId is a primitive wrapper type it's getter can return null and a nullpointerexception will be thrown in the above code in that case