diff options
Diffstat (limited to 'datafile-app-server/src/main/java')
-rw-r--r-- | datafile-app-server/src/main/java/org/onap/dcaegen2/collectors/datafile/model/FileData.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/datafile-app-server/src/main/java/org/onap/dcaegen2/collectors/datafile/model/FileData.java b/datafile-app-server/src/main/java/org/onap/dcaegen2/collectors/datafile/model/FileData.java index 8cafd0c4..4805cb47 100644 --- a/datafile-app-server/src/main/java/org/onap/dcaegen2/collectors/datafile/model/FileData.java +++ b/datafile-app-server/src/main/java/org/onap/dcaegen2/collectors/datafile/model/FileData.java @@ -130,6 +130,12 @@ public abstract class FileData { String[] userAndPassword = userInfoString.split(":"); if (userAndPassword.length == 2) { return Optional.of(userAndPassword); + }else if(userAndPassword.length == 1)//if just user + { + String[] tab = new String[2]; + tab[0] = userAndPassword[0]; + tab[1] = "";//add empty password + return Optional.of(tab); } } return Optional.empty(); |