Code Review
/
dmaap
/
datarouter.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
More DR unit tests and code cleanup
[dmaap/datarouter.git]
/
datarouter-node
/
src
/
main
/
java
/
org
/
onap
/
dmaap
/
datarouter
/
node
/
ProvData.java
diff --git
a/datarouter-node/src/main/java/org/onap/dmaap/datarouter/node/ProvData.java
b/datarouter-node/src/main/java/org/onap/dmaap/datarouter/node/ProvData.java
index
c436076
..
03e952c
100644
(file)
--- a/
datarouter-node/src/main/java/org/onap/dmaap/datarouter/node/ProvData.java
+++ b/
datarouter-node/src/main/java/org/onap/dmaap/datarouter/node/ProvData.java
@@
-152,7
+152,7
@@
public class ProvData {
}
/**
}
/**
- * Get the raw node configuration entries
+ * Get the raw node configuration entries
.
*/
public NodeConfig.ProvNode[] getNodes() {
return (pn);
*/
public NodeConfig.ProvNode[] getNodes() {
return (pn);
@@
-333,6
+333,9
@@
public class ProvData {
if (jnodes != null) {
for (int nx = 0; nx < jnodes.length(); nx++) {
String nn = gvas(jnodes, nx);
if (jnodes != null) {
for (int nx = 0; nx < jnodes.length(); nx++) {
String nn = gvas(jnodes, nx);
+ if (nn == null) {
+ continue;
+ }
if (nn.indexOf('.') == -1) {
nn = nn + "." + sfx;
}
if (nn.indexOf('.') == -1) {
nn = nn + "." + sfx;
}