[
https://issues.apache.org/jira/browse/SQOOP-2688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15012221#comment-15012221
]
ASF subversion and git services commented on SQOOP-2688:
--------------------------------------------------------
Commit 25b0df5c8c5934c483fb340ffdf1596d2164c94a in sqoop's branch
refs/heads/sqoop2 from [~kathleen]
[ https://git-wip-us.apache.org/repos/asf?p=sqoop.git;h=25b0df5 ]
SQOOP-2688: Sqoop2: Provide utility method to safely retrieve value from
JSONObject
(Jarek Jarcec Cecho via Kate Ting)
> 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)