OSDir


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[C++] Avoiding Nullptrs?


Hi Everyone,

Recently I've investigated a parquet edge case ARROW-2591 which is caused by a returned nullptr here. (https://link.getmailspring.com/link/1527842287.local-dc8ae776-35fa-v1.2.2-96fb3a99@xxxxxxxxxxxxxxxxx/0?redirect=https%3A%2F%2Fgithub.com%2Fapache%2Fparquet-cpp%2Fblob%2Fmaster%2Fsrc%2Fparquet%2Farrow%2Fwriter.cc%23L415&recipient=ZGV2QGFycm93LmFwYWNoZS5vcmc%3D)
I'm wondering would it be possible to avoid having nullptrs instead of checking them?
IMHO having them around causes hidden bugs as well as increases the complexity.

Krisztian