if (fieldValue.indexOf('"') != -1) {
needsQuotes = true;
fieldValue.replaceAll("\"", "\"\"");
}
This bug was found by Echelon team with AppChecker static analyzer
if (fieldValue.indexOf('"') != -1) {
needsQuotes = true;
fieldValue.replaceAll("\"", "\"\"");
}