gerrit/gerrit-httpd
Shawn Pearce 0e03b79ba4 Fix NPE in ChangeDetailFactory for loadMessages isPatchVisible
If the patch set wasn't loaded from the database don't load its
associated messages. This can happen as a race condition where:

 reader (T1):
   scans patch sets

 writer (T2):
   inserts new patch set
   inserts new message

  reader (T1):
    scans messages

The reader doesn't know about the new patch set and cannot
validate if it is a draft or not. Since the reader is under
the assumption the patch set does not exist simply skipping
newer messages is sane.

Change-Id: Ifd2000364bcf6ce8f37935bd8c4cc1725fb52a64
2013-10-07 17:19:05 -07:00
..
.settings Remove timestamp from all org.eclipse.core.resources.prefs files. 2012-07-04 14:06:09 +02:00
src Fix NPE in ChangeDetailFactory for loadMessages isPatchVisible 2013-10-07 17:19:05 -07:00
.gitignore Add Intellij IDEA files to ignore list 2012-05-03 13:17:43 -07:00
BUCK Remove jsr305 library 2013-09-26 23:12:55 -07:00