Initialize the submodule commit message buffer

Appending to a String that is null causes the null value to be coerced
to a string literal, such that the previously-null String value becomes
a string literal "null".

Change-Id: I07a4b071fabbb0b4a28403603884cb05d777c01b
Bug: Issue 1396
This commit is contained in:
Joe Hansche
2012-05-18 18:22:50 -04:00
parent b3a402124f
commit 8001dc83f3

View File

@@ -202,6 +202,9 @@ public class SubmoduleOp {
if (!subscribers.isEmpty()) {
String msgbuf = msg;
if (msgbuf == null) {
// Initialize the message buffer
msgbuf = "";
// The first updatedBranch on a cascade event of automatic
// updates of repos is added to updatedSubscribers set so
// if we face a situation having