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

Jarek Jarcec Cecho updated SQOOP-2688:
--------------------------------------
    Attachment: SQOOP-2688.patch

> Sqoop2: Provide utility method to safely retrieve value from JSONObject
> -----------------------------------------------------------------------
>
>                 Key: SQOOP-2688
>                 URL: https://issues.apache.org/jira/browse/SQOOP-2688
>             Project: Sqoop
>          Issue Type: Sub-task
>            Reporter: Jarek Jarcec Cecho
>            Assignee: Jarek Jarcec Cecho
>             Fix For: 1.99.7
>
>         Attachments: SQOOP-2688.patch
>
>
> I've continued working on the umbrella JIRA SQOOP-2468 by injecting various 
> invalid JSON snippets and I've noticed that is *extremely* easy to get 
> {{NullPointerException}}.  That is because we're anticipating certain 
> structure in the JSON and we're not properly checking whether it's there or 
> not. 
> I would like to fix that by introducing util method that will properly verify 
> if given key is available and whether it's of proper class instead of 
> throwing not useful {{NullPointerException}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to