Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

SQOOP-3435 Avoid NullPointerException due to different JSONObject library in classpath #77

Merged
merged 1 commit into from Apr 3, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/java/org/apache/sqoop/util/SqoopJsonUtil.java
Expand Up @@ -40,7 +40,8 @@ private SqoopJsonUtil() {
}

public static String getJsonStringforMap(Map<String, String> map) {
JSONObject pathPartMap = new JSONObject(map);
Map<String, String> mapToUse = (map == null) ? Collections.emptyMap() : map;
JSONObject pathPartMap = new JSONObject(mapToUse);
return pathPartMap.toString();
}

Expand Down