abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher Elkins (JIRA)" <j...@apache.org>
Subject [jira] Updated: (ABDERA-195) OpenSearchDescription setters don't handle null args gracefully
Date Fri, 08 Aug 2008 21:27:44 GMT

     [ https://issues.apache.org/jira/browse/ABDERA-195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Christopher Elkins updated ABDERA-195:

    Attachment: OpenSearchDescription.java.patch

Patches varargs setters to check for null before checking array length

> OpenSearchDescription setters don't handle null args gracefully
> ---------------------------------------------------------------
>                 Key: ABDERA-195
>                 URL: https://issues.apache.org/jira/browse/ABDERA-195
>             Project: Abdera
>          Issue Type: Bug
>    Affects Versions: 0.5.0
>            Reporter: Christopher Elkins
>            Priority: Minor
>         Attachments: OpenSearchDescription.java.patch
> The setter methods in OpenSearchDescription that handle varargs (e.g., setTags(String...))
throw NPE when passed a null argument. Because they already handle empty array arguments in
a special way, it would be reasonable for them to handle nulls gracefully rather than requiring
callers to check for nulls.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message