Aktionen
Fehler #625
geschlossenfindById<type>(-1) should always return nullptr
Beginn:
12.10.2016
Abgabedatum:
% erledigt:
100%
Geschätzter Aufwand:
Beschreibung
findById called with any invalid id (especially when called with -1!) should return nullptr, but it seems it doesn't.
auto incId = this->get_dbId();
// debug evaluation: incId == -1 here
auto em = EntityManager::getDefaultInstance();
auto oldInc = em->findById<AttendanceIncident>(incId);
// debug evaluation: oldInc == 0x6d3.... now
if (oldInc.isNull()) {
// never enters this
}
Aktionen