-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing NULL test of NTNDArray::wrap() #8
Comments
So I found which of the ~30 conditions in As the (somewhat unwilling) maintainer of normativeTypesCPP i have to ask. Would you be willing to stop using |
I don't know enough about NTNDArrayConverter to answer this. Hopefully @brunoseivam can respond. |
Hi Michael, What would it be replaced with? "Hand"-built NTNDArray definitions? If that's the case, I worry that other users of normative types will have to keep track of the types by themselves. As far as I remember, the code that you quoted assumes that |
@MarkRivers could you please give me write access to this repo? |
I just gave the Developer team write access, so you should be able to write to it now. |
In case there is any confusion I'd like to scrap
Well it certainly can change. In this case though the issues turned out to be that 'codec' needs to be a sub-structure instead of an array of structures, and the 'dataTimeStamp' field was missing. |
I see what you're saying. Do you want to get rid of all wrapper classes? When I was writing the converters I thought the opposite: that the wrappers should be made more ergonomic, e.g. But I get where you are coming from |
Fixed via #9 |
I see what is there now as trap for the inexperienced, and "Del" is what I have time for. I think you are the only one to use Technically, what I'd like to see is a move away from the ridged and opaque This way errors, in the form of exceptions, are generated only when something essential is missing. And there will be a message to gives some clue as to what the missing piece may be. |
One aspect of having a wrapper / Of course, that's development effort, and I understand the position you're in right now. |
Fix uncaught possibility of NTNDArray::wrap returning NULL. Fixes #8
I am closing this issue since the specific problem has been addressed |
NTNDArray::wrap()
can return NULL. If for some reason it does, eg. I give it a somehow "incompatible" definition, then SIGSEGV follows.pvaDriver/pvaDriverApp/src/pvaDriver.cpp
Lines 244 to 258 in e0819d2
Also, it is bad form to swallow exception messages like this. I see no reason to catch anything other than
std::exception
. If you ever find that PVD or PVA throws something which doesn't derive fromstd::exception
, then please report this as a bug.The text was updated successfully, but these errors were encountered: