Skip to content

Commit

Permalink
Merge pull request #1259 from csordasmarton/empty_new_hash_fix
Browse files Browse the repository at this point in the history
Fix get diff hashes for new bugs
  • Loading branch information
Xazax-hun authored Dec 16, 2017
2 parents 9bf5470 + 599adf7 commit b6e5fa9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libcodechecker/server/api/report_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,9 @@ def getDiffResultsHash(self, run_ids, report_hashes, diff_type):
try:
session = self.__Session()
if diff_type == DiffType.NEW:
if not report_hashes:
return []

# In postgresql we can select multiple rows filled with
# constants by using `unnest` function. In sqlite we have to
# use multiple UNION ALL.
Expand Down

0 comments on commit b6e5fa9

Please sign in to comment.