It seems that for some reason when I try to call two functions on the same line, the first function receives an nullptr from ".get()" as the first argument
getSomePtr(someUniquePtr.get(), someArray)->moveUniquePtr(std::move(someUniquePtr));
But when separating these functions in to two separate lines, everything seems to work:
auto* somePtr = getSomePtr(someUniquePtr.get(), someArray);
somePtr->moveUniquePtr(std::move(someUniquePtr));
Why does this happen?