Skip to content

Commit

Permalink
Merge pull request #19339 from ghalliday/issue33073
Browse files Browse the repository at this point in the history
HPCC-33073 Fix error in unittests caused by getPlaneAttributeValue(nullptr)

Reviewed-by: Jake Smith <[email protected]>
Merged-by: Gavin Halliday <[email protected]>
  • Loading branch information
ghalliday authored Dec 5, 2024
2 parents a063c66 + 779e824 commit 5829c7f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions system/jlib/jfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7998,6 +7998,8 @@ const char *getPlaneAttributeString(PlaneAttributeType attr)

unsigned __int64 getPlaneAttributeValue(const char *planeName, PlaneAttributeType planeAttrType, unsigned __int64 defaultValue)
{
if (!planeName)
return defaultValue;
assertex(planeAttrType < PlaneAttributeCount);
CriticalBlock b(planeAttributeMapCrit);
auto it = planeAttributesMap.find(planeName);
Expand Down

0 comments on commit 5829c7f

Please sign in to comment.