smolnar82 commented on a change in pull request #296: KNOX-2240 - KnoxShell
Custom Command for WEBHDFS Use
URL: https://github.com/apache/knox/pull/296#discussion_r396255497
##########
File path:
gateway-shell/src/main/java/org/apache/knox/gateway/shell/KnoxSession.java
##########
@@ -661,6 +676,20 @@ public static void persistDataSources(Map<String,
KnoxDataSource> datasources) {
return sqlHistories;
}
+ public static Map<String, String> loadMountPoints() throws IOException {
+ Map<String, String> mounts = null;
Review comment:
To avoid NPEs I'd initialize it as an empty map (no null check is needed
when this is invoked)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services