Project

General

Profile

Actions

Bug #2934

closed

possible None.get in EventLogServiceImpl

Added by Vincent MEMBRÉ over 11 years ago. Updated over 11 years ago.

Status:
Released
Priority:
2
Category:
Web - Maintenance
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

in method getListOfModificationEvents, there is an Option.get

we should at least pu a default value with a getOrElse

What do you think of 0 as default value ?

repository.getEventLogByCriteria(Some("eventtype in (" eventList ") and id > " +lastSuccess.id.get ), None, Some("id DESC") )

Actions #1

Updated by Arthur ANGLADE over 11 years ago

  • Status changed from New to Discussion
Actions #2

Updated by Arthur ANGLADE over 11 years ago

  • Assignee set to Nicolas PERRON

It seems like Nicolas is able to answer this question

Actions #3

Updated by Arthur ANGLADE over 11 years ago

  • Assignee changed from Nicolas PERRON to Nicolas CHARLES

wrong nicolas

Actions #4

Updated by Nicolas CHARLES over 11 years ago

  • Status changed from Discussion to 8
  • Assignee changed from Nicolas CHARLES to Vincent MEMBRÉ

I think that 0 is a sane default value since the minimum id is 1 (based on the postgresql SQL).
You can do the correction Vincent

Actions #5

Updated by Vincent MEMBRÉ over 11 years ago

  • Status changed from 8 to Pending technical review
  • % Done changed from 0 to 100
Actions #6

Updated by Nicolas CHARLES over 11 years ago

  • Status changed from Pending technical review to Released

This is good. But Vincent, can you explain why two commits ? Is it a merge that didn't tell its name, or did you really commit on both 2.4 and master ????

Actions #7

Updated by Vincent MEMBRÉ over 11 years ago

That's a merge !! there was only one commit in that merge, so it was considered as a commit, not as a merge

Actions

Also available in: Atom PDF