Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash executeGeomOverlay called without context #59473

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

elpaso
Copy link
Contributor

@elpaso elpaso commented Nov 18, 2024

Fix unreported crash.

@elpaso elpaso added Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption labels Nov 18, 2024
@github-actions github-actions bot added this to the 3.42.0 milestone Nov 18, 2024
Copy link

github-actions bot commented Nov 18, 2024

🪟 Windows builds

Download Windows builds of this PR for testing.
Debug symbols for this build are available here.
(Built from commit 527b9a1)

🪟 Windows Qt6 builds

Download Windows Qt6 builds of this PR for testing.
(Built from commit 527b9a1)

@@ -7728,6 +7728,12 @@ typedef bool ( QgsGeometry::*RelationFunction )( const QgsGeometry &geometry ) c
static QVariant executeGeomOverlay( const QVariantList &values, const QgsExpressionContext *context, QgsExpression *parent, const RelationFunction &relationFunction, bool invert = false, double bboxGrow = 0, bool isNearestFunc = false, bool isIntersectsFunc = false )
{

if ( ! context )
{
parent->setEvalErrorString( QObject::tr( "This function was called without an expression context." ) );
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably don't need to translate this -- this situation should never arise in a user-visible context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants