Project

General

Profile

Bug #9769

Dereferencing a default-constructed (or cleared) Handle does not throw

Added by Christopher Green about 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Navigation
Target version:
Start date:
07/30/2015
Due date:
% Done:

100%

Estimated time:
2.00 h
Spent time:
Occurs In:
Scope:
Internal
Experiment:
-
SSI Package:
art
Duration:

Description

If an art::Handle is default-constructed, or clear() is called, a subsequent attempt to de-reference it does not throw an exception.


Related issues

Related to art - Support #9768: art::FindManyP throws if art::Handle is invalidClosed07/30/2015

History

#1 Updated by Christopher Green about 5 years ago

  • Related to Support #9768: art::FindManyP throws if art::Handle is invalid added

#2 Updated by Kyle Knoepfel about 5 years ago

  • Status changed from New to Assigned
  • Assignee set to Kyle Knoepfel
  • Estimated time set to 2.00 h

#3 Updated by Kyle Knoepfel about 5 years ago

  • Status changed from Assigned to Resolved
  • % Done changed from 0 to 100

An exception is now thrown whenever an attempt is made to dereference an art::Handle that points to nullptr, which corresponds to the two situations above.

Implemented with art:58de7d80956cbbc24489981526eff126acd6d418.

#4 Updated by Kyle Knoepfel almost 5 years ago

  • Target version set to 1.16.00

#5 Updated by Christopher Green almost 5 years ago

  • Status changed from Resolved to Closed


Also available in: Atom PDF