Skip to content

Commit b4ce9dd

Browse files
committed
fixing null pointer error to have a message, and changing action params and desc
1 parent 94ffdab commit b4ce9dd

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,5 @@ publishing {
5151
}
5252

5353
group 'mil.army.usace.hec'
54-
version '0.0.48'
54+
version '0.0.49'
5555
}

src/main/java/usace/cc/plugin/Action.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,27 @@
66

77
public class Action {
88
private String name;
9-
private String description;
10-
private Map<String,DataSource> parameters;
9+
private String desc;
10+
private Map<String,DataSource> params;
1111
@JsonProperty
1212
public String getName(){
1313
return name;
1414
}
1515
@JsonProperty
1616
public String getDescription(){
17-
return description;
17+
return desc;
1818
}
1919
@JsonProperty
2020
public Map<String,DataSource> getParameters(){
21-
return parameters;
21+
return params;
2222
}
2323
public void UpdateActionPaths(){
2424
PluginManager pm = PluginManager.getInstance();
2525
this.name = pm.SubstitutePath(this.name);
26-
this.description = pm.SubstitutePath(this.description);
27-
if(parameters!=null){
28-
for(Map.Entry<String, DataSource> apb : parameters.entrySet()){
29-
parameters.replace(apb.getKey(),apb.getValue().UpdatePaths());
26+
this.desc = pm.SubstitutePath(this.desc);
27+
if(params!=null){
28+
for(Map.Entry<String, DataSource> apb : params.entrySet()){
29+
params.replace(apb.getKey(),apb.getValue().UpdatePaths());
3030
}
3131
}
3232

src/main/java/usace/cc/plugin/PluginManager.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ private DataStore findDataStore(String name){
178178
return dataStore;
179179
}
180180
}
181+
System.out.println(name + " store not found.");
181182
return null;
182183
}
183184
}

0 commit comments

Comments
 (0)