[Building Sakai] Possible NPE in BaseContentService
Steve Swinsburg
steve.swinsburg at gmail.com
Mon Nov 26 14:08:40 PST 2012
Hi Evandro,
Yes, file a bug report and steps to recreate the problem, if possible. If not easy to reproduce, and its possible that value is can be null, then a null check guard around it might be all that is needed, and some unit tests can test it.
cheers,
Steve
On 27/11/2012, at 3:41 AM, Evandro Pires Alves <evandro at ipb.pt> wrote:
> Hi
>
> I just spotted a possible (it's hitting me) Null Point Exception on
> org.sakaiproject.content.impl.BaseContentService.java
>
> I'm running kernel 1.2.8 but I just checked this on trunk and the code
> is the same.
>
> On method
>
> * protected List filterArtifacts(List artifacts, String type,
> String primaryMimeType, String subMimeType, boolean checkPerms)
> * line 9162
> * variable mimeType
>
> we are using it but can be NULL.
>
> I don't know the best approach here, I'm thinking about a patch but it's
> still monday :)
>
> Any ideas? Create a bug report on JIRA?
>
> --
> _____________________________________________________
> | Evandro Pires Alves | gab. 13 | ESTiG | ext. 3804 |
> =====================================================
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"
More information about the sakai-dev
mailing list