You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@abdera.apache.org by "Christopher Elkins (JIRA)" <ji...@apache.org> on 2008/08/08 23:25:44 UTC
[jira] Created: (ABDERA-195) OpenSearchDescription setters don't
handle null args gracefully
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
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.
[jira] Resolved: (ABDERA-195) OpenSearchDescription setters don't
handle null args gracefully
Posted by "David Calavera (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ABDERA-195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Calavera resolved ABDERA-195.
-----------------------------------
Resolution: Fixed
Assignee: David Calavera
> 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
> Assignee: David Calavera
> 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.
[jira] Updated: (ABDERA-195) OpenSearchDescription setters don't
handle null args gracefully
Posted by "Christopher Elkins (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Closed: (ABDERA-195) OpenSearchDescription setters don't
handle null args gracefully
Posted by "David Calavera (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ABDERA-195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Calavera closed ABDERA-195.
---------------------------------
> 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
> Assignee: David Calavera
> 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.