Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-28505

Clean up invalid null reference

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Not specified
    • Resolution: Fixed
    • None
    • 8.12.0
    • Dali
    • None

    Description

      The following code is generating warnings, and should be revisited:

       

       

      2022-11-03T00:36:46.9930880Z /Users/runner/work/HPCC-Platform/HPCC-Platform/dali/base/dadfs.cpp:4085:16: warning: binding dereferenced null pointer to reference has undefined behavior [-Wnull-dereference]
      2022-11-03T00:36:47.0030190Z         return *(IDistributedFilePart *)NULL;
      2022-11-03T00:36:47.0130530Z                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      2022-11-03T00:36:47.5247190Z /Users/runner/work/HPCC-Platform/HPCC-Platform/dali/base/dadfs.cpp:5884:20: warning: binding dereferenced null pointer to reference has undefined behavior [-Wnull-dereference]
      2022-11-03T00:36:47.5347300Z             return *(IDistributedFilePart *)NULL;
      2022-11-03T00:36:47.5448530Z                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      

       

       

      Attachments

        Issue Links

          Activity

            People

              jakesmith Jake Smith
              ghalliday Gavin Halliday
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: