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

The value displayed is 0 instead of NULL #6115

Open
3 tasks done
Zazimut opened this issue Mar 18, 2025 · 1 comment
Open
3 tasks done

The value displayed is 0 instead of NULL #6115

Zazimut opened this issue Mar 18, 2025 · 1 comment
Labels

Comments

@Zazimut
Copy link

Zazimut commented Mar 18, 2025

What is the bug or the crash? What were your expectations and what actually happened?

When a NULL value is set from an expression, the display of this value is 0 but is considered like a NULL value for other calculated fields. It appear with Shapefiles and Geopackages in the same way

Steps to reproduce the issue

_ Set a field with the checkbox tool (field1)
_ Set a field2 with a default value like : IF("field1" = 'False', NULL, "field2")
_ Enter a value in the field1
_ Change the value on 'False' in the field2
_ The value displayed for field1 should be 0 and not NULL (but considered as NULL)

Version

3.5.3-Fangorn

Operating system name

Android

Operating system version

Android 10 QP1A.190711.020

Reinstall QField

  • I have a fresh install of the latest QField version, but the problem persists.
  • Problem can be reliably reproduced, doesn't happen randomly.
  • Problem happens with all files and projects, not only some files or projects.

Additional context

No response

@m-kuhn
Copy link
Member

m-kuhn commented Mar 22, 2025

Can you provide a minimal project which demonstrates the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants