summaryrefslogtreecommitdiffstats
path: root/cadi/core/src
diff options
context:
space:
mode:
authorInstrumental <jonathan.gathman@att.com>2019-02-10 09:54:15 -0600
committerInstrumental <jonathan.gathman@att.com>2019-02-10 10:09:21 -0600
commitb24f7e097f17761a5c1b02c4dbfe6ee7d78836dd (patch)
tree74d883936a21a07a2e0c718ec6a7f456b4d18cab /cadi/core/src
parent39596f5b6d2c67d8c2b357243ecfb2dd6d746796 (diff)
Add Cred Reporting Mailer
Issue-ID: AAF-740,AAF-753,AAF-754 Change-Id: If2efc6ffbfa9897581ea00eb148fa61d793b058e Signed-off-by: Instrumental <jonathan.gathman@att.com>
Diffstat (limited to 'cadi/core/src')
-rw-r--r--cadi/core/src/main/java/org/onap/aaf/cadi/util/CSV.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/cadi/core/src/main/java/org/onap/aaf/cadi/util/CSV.java b/cadi/core/src/main/java/org/onap/aaf/cadi/util/CSV.java
index a834db51..e17b49ec 100644
--- a/cadi/core/src/main/java/org/onap/aaf/cadi/util/CSV.java
+++ b/cadi/core/src/main/java/org/onap/aaf/cadi/util/CSV.java
@@ -85,7 +85,7 @@ public class CSV {
List<String> row = new ArrayList<>();
boolean quotes=false;
boolean escape=false;
- char c;
+ char c = 0;
for(int i=0;i<line.length();++i) {
switch(c=line.charAt(i)) {
case '"':
@@ -124,7 +124,7 @@ public class CSV {
sb.append(c);
}
}
- if(sb.length()>0) {
+ if(sb.length()>0 || c==',') {
row.add(sb.toString());
sb.setLength(0);
}