[ 
https://issues.apache.org/jira/browse/SQOOP-2688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15012656#comment-15012656
 ] 

Hudson commented on SQOOP-2688:
-------------------------------

SUCCESS: Integrated in Sqoop2 #953 (See 
[https://builds.apache.org/job/Sqoop2/953/])
SQOOP-2688: Sqoop2: Provide utility method to safely retrieve value from 
(kathleen: 
[https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=25b0df5c8c5934c483fb340ffdf1596d2164c94a])
* common/src/main/java/org/apache/sqoop/json/JSONUtils.java
* common/src/main/java/org/apache/sqoop/json/util/SchemaSerialization.java
* common/src/main/java/org/apache/sqoop/json/SubmissionBean.java
* common/src/main/java/org/apache/sqoop/json/DriverBean.java
* common/src/main/java/org/apache/sqoop/json/util/ConfigInputSerialization.java
* common/src/main/java/org/apache/sqoop/json/LinkBean.java
* common/src/main/java/org/apache/sqoop/json/ConnectorsBean.java
* common/src/main/java/org/apache/sqoop/json/JobBean.java
* common/src/main/java/org/apache/sqoop/json/util/SerializationError.java
* common/src/main/java/org/apache/sqoop/json/RolesBean.java
* common/src/main/java/org/apache/sqoop/json/ConnectorBean.java
* common/src/main/java/org/apache/sqoop/json/PrivilegesBean.java
* common/src/main/java/org/apache/sqoop/json/PrincipalsBean.java
* common/src/main/java/org/apache/sqoop/json/JobsBean.java
* common/src/main/java/org/apache/sqoop/json/RoleBean.java
* common/src/test/java/org/apache/sqoop/json/TestJSONUtils.java
* common/src/main/java/org/apache/sqoop/json/PrincipalBean.java
* common/src/main/java/org/apache/sqoop/json/LinksBean.java
* common/src/main/java/org/apache/sqoop/json/PrivilegeBean.java
* common/src/main/java/org/apache/sqoop/json/ValidationResultBean.java
* common/src/main/java/org/apache/sqoop/json/SubmissionsBean.java


> 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