Fix NullPointerException when executing query with --comments option

messages method was accesssing the notes member variable directly
instead of using the notes method, which will load the notes if not
already loaded.

Issue: 3210
Change-Id: I4b02f10d75070507cedbe9876a0f7c90944e0e2d
This commit is contained in:
Hugo Arès
2015-02-23 10:06:05 -05:00
parent 4d48481cc6
commit 2bb0f3a4da

View File

@@ -530,7 +530,7 @@ public class ChangeData {
public List<ChangeMessage> messages()
throws OrmException {
if (messages == null) {
messages = cmUtil.byChange(db, notes);
messages = cmUtil.byChange(db, notes());
}
return messages;
}