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

Robin Taylor reassigned DS-874:
-------------------------------

    Assignee: Robin Taylor
    
> NullPointerException possible during item browsing
> --------------------------------------------------
>
>                 Key: DS-874
>                 URL: https://jira.duraspace.org/browse/DS-874
>             Project: DSpace
>          Issue Type: Bug
>          Components: DSpace API
>    Affects Versions: 1.7.1
>            Reporter: Denys Slipetskyy
>            Assignee: Robin Taylor
>         Attachments: GoogleMetadata.java
>
>   Original Estimate: 1 minute
>  Remaining Estimate: 1 minute
>
> Under some circumstances GoogleMetadata class can throw a 
> NullPointerException.
> (dspace-api/src/main/java/org/dspace/app/util/GoogleMetadata.java).
> Exception occurs if for some reason value of mapped filed is Null.
> Fix is very simple:
> from line #268
> DCValue v = resolveMetadataField(config);
>  
> -        if (null != v && !v.value.trim().equals(""))
> +        if (null != v && (null != v.value) && !v.value.trim().equals(""))
>          {
>              metadataMappings.put(fieldName, v.value);
>              return true;

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

        

------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to