[ 
https://jira.duraspace.org/browse/DS-742?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tim Donohue resolved DS-742.
----------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 1.8.0)
                   1.7.0

Marking as resolved, based on discussion n the Developers Meeting on March 23, 
2011. This was actually resolved in 1.7.0, I believe.

> Embargo Fails with Null Pointer Exception on Item Install.
> ----------------------------------------------------------
>
>                 Key: DS-742
>                 URL: https://jira.duraspace.org/browse/DS-742
>             Project: DSpace
>          Issue Type: Bug
>          Components: DSpace API
>    Affects Versions: 1.6.0, 1.6.1, 1.6.2, 1.7.0
>            Reporter: Mark Diggory
>            Assignee: Mark Diggory
>             Fix For: 1.7.0
>
>
> Embargo fails because the code fails to check for NullPointers appropriately.
> Fix
>         
>         DCDate result = null;
>         
>         // Its very poor form to blindly use an object that could be null...
>         if(terms != null && terms[0] != null)
>         {
>               result = setter.parseTerms(context, item, terms.length > 0 ? 
> terms[0].value : null);
>         }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.duraspace.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Dspace-devel mailing list
Dspace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to