From 6fbbbe408ef649b9d6db00658570b8dfc80349e6 Mon Sep 17 00:00:00 2001 From: Will Lehman Date: Wed, 21 Jun 2023 09:05:41 -0400 Subject: [PATCH] nullchecks --- build.gradle | 2 +- src/main/java/usace/cc/plugin/Action.java | 7 +++++-- src/main/java/usace/cc/plugin/DataSource.java | 19 ++++++++++++------- .../java/usace/cc/plugin/PluginManager.java | 19 +++++++++++++------ 4 files changed, 31 insertions(+), 16 deletions(-) diff --git a/build.gradle b/build.gradle index 9a08634..491d1df 100644 --- a/build.gradle +++ b/build.gradle @@ -51,5 +51,5 @@ publishing { } group 'mil.army.usace.hec' - version '0.0.46' + version '0.0.47' } diff --git a/src/main/java/usace/cc/plugin/Action.java b/src/main/java/usace/cc/plugin/Action.java index 243cb3f..5176902 100644 --- a/src/main/java/usace/cc/plugin/Action.java +++ b/src/main/java/usace/cc/plugin/Action.java @@ -21,8 +21,11 @@ public Map getParameters(){ return parameters; } public void UpdateActionPaths(){ - for(Map.Entry apb : parameters.entrySet()){ - parameters.replace(apb.getKey(),apb.getValue().UpdatePaths()); + if(parameters!=null){ + for(Map.Entry apb : parameters.entrySet()){ + parameters.replace(apb.getKey(),apb.getValue().UpdatePaths()); + } } + } } diff --git a/src/main/java/usace/cc/plugin/DataSource.java b/src/main/java/usace/cc/plugin/DataSource.java index 2e2f4d3..c3f8f65 100644 --- a/src/main/java/usace/cc/plugin/DataSource.java +++ b/src/main/java/usace/cc/plugin/DataSource.java @@ -29,15 +29,20 @@ public String getStoreName(){ public DataSource UpdatePaths(){ DataSource dest = this; PluginManager pm = PluginManager.getInstance(); - - for(int j=0; j