Anonymous | Login | Signup for a new account | 2025-05-14 07:42 EDT | ![]() |
My View | View Issues | Change Log | Roadmap |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0000412 | JANA | Feature Request | public | 2014-07-18 08:19 | 2014-07-18 08:30 | ||||
Reporter | davidl | ||||||||
Assigned To | davidl | ||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | ||||
Status | resolved | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Summary | 0000412: Set pointer to NULL in JEventLoop::GetSingle if 0 values. | ||||||||
Description | From an e-mail from Paul Mattione on June 7, 2014 =========================================== In JEventLoop::GetSingle(), could you set the pointer to NULL if the vector is empty, and only throw an exception if the size is >= 2? (Current is to throw if size != 1). I've been using GetSingle() for DMCThrownMatching, and checking for NULL after the function call, but it throws on (CLAS) experimental data. Thanks. - Paul =========================================== | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
![]() |
|
(0000592) davidl (administrator) 2014-07-18 08:30 |
This was fixed in svn revision 2046 and will appear in JANA 0.7.2 The code now sets the value of "t" to NULL in all cases where there is not exactly one object of the requested type. It also has a 3rd parameter that can be used to disable throwing an exception if N!=1. |
![]() |
|||
Date Modified | Username | Field | Change |
2014-07-18 08:19 | davidl | New Issue | |
2014-07-18 08:30 | davidl | Note Added: 0000592 | |
2014-07-18 08:30 | davidl | Status | new => resolved |
2014-07-18 08:30 | davidl | Resolution | open => fixed |
2014-07-18 08:30 | davidl | Assigned To | => davidl |
Copyright © 2000 - 2025 MantisBT Team |