Skip to content
Snippets Groups Projects
Commit e4e0a0c9 authored by MelanieCarriere's avatar MelanieCarriere
Browse files

[test] check that the Stream and its interpreter are not nullptr

parent 600a88ff
No related branches found
No related tags found
1 merge request!137Fix test stream and remove warnings
Pipeline #198571 failed
Pipeline: LidarView

#198572

    ......@@ -472,6 +472,12 @@ int testLidarStream(vtkLidarStream *stream,
    const std::string& referenceFileName,
    bool preSend)
    {
    if(!stream)
    {
    std::cout << "Stream is nullptr" << std::endl;
    return 1;
    }
    int retVal = 0;
    // get VTP file name from the reference file
    std::vector<std::string> referenceFilesList;
    ......@@ -490,6 +496,12 @@ int testLidarStream(vtkLidarStream *stream,
    auto interpreter = vtkLidarPacketInterpreter::SafeDownCast(stream->GetInterpreter());
    if(!interpreter)
    {
    std::cout << "Interpreter is nullptr" << std::endl;
    return 1;
    }
    // Case of live correction : Packet are sent a first time to save calibration
    if (preSend)
    {
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment