diff --git a/python/plugins/processing/tests/testdata/custom/reclassify_layer_nulls.gml b/python/plugins/processing/tests/testdata/custom/reclassify_layer_nulls.gml
new file mode 100644
index 00000000000..a6a7cf3d3b8
--- /dev/null
+++ b/python/plugins/processing/tests/testdata/custom/reclassify_layer_nulls.gml
@@ -0,0 +1,23 @@
+
+
+ missing
+
+
+
+
+ 850
+ 3
+
+
+
+
+ 850
+
+ 4
+
+
+
diff --git a/python/plugins/processing/tests/testdata/custom/reclassify_layer_nulls.xsd b/python/plugins/processing/tests/testdata/custom/reclassify_layer_nulls.xsd
new file mode 100644
index 00000000000..157b0a4144f
--- /dev/null
+++ b/python/plugins/processing/tests/testdata/custom/reclassify_layer_nulls.xsd
@@ -0,0 +1,43 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/python/plugins/processing/tests/testdata/qgis_algorithm_tests.yaml b/python/plugins/processing/tests/testdata/qgis_algorithm_tests.yaml
index 6d346dc0618..7d4f3138074 100644
--- a/python/plugins/processing/tests/testdata/qgis_algorithm_tests.yaml
+++ b/python/plugins/processing/tests/testdata/qgis_algorithm_tests.yaml
@@ -5581,6 +5581,29 @@ tests:
hash: cea558f7e99a0564fef92a96cd8d6b59707d019f1751cb600ab00850
type: rasterhash
+ - algorithm: native:reclassifybytable
+ name: Reclassify by table infinite ranges
+ params:
+ DATA_TYPE: 5
+ INPUT_RASTER:
+ name: raster.tif
+ type: raster
+ NODATA_FOR_MISSING: false
+ NO_DATA: -9999.0
+ RANGE_BOUNDARIES: 0
+ RASTER_BAND: 1
+ TABLE:
+ - ''
+ - 850
+ - 3
+ - 850
+ - ''
+ - 4
+ results:
+ OUTPUT:
+ hash: c29d14f71e8686f7445d53be646fce84702644f159fd0164ac38e861
+ type: rasterhash
+
- algorithm: native:reclassifybylayer
name: Reclassify by layer
params:
@@ -5602,5 +5625,28 @@ tests:
hash: c29d14f71e8686f7445d53be646fce84702644f159fd0164ac38e861
type: rasterhash
+ - algorithm: native:reclassifybylayer
+ name: Reclassify by layer with nulls
+ params:
+ DATA_TYPE: 5
+ INPUT_RASTER:
+ name: raster.tif
+ type: raster
+ INPUT_TABLE:
+ name: custom/reclassify_layer_nulls.gml
+ type: vector
+ MAX_FIELD: max
+ MIN_FIELD: min
+ NODATA_FOR_MISSING: false
+ NO_DATA: -9999.0
+ RANGE_BOUNDARIES: 0
+ RASTER_BAND: 1
+ VALUE_FIELD: value
+ results:
+ OUTPUT:
+ hash: c29d14f71e8686f7445d53be646fce84702644f159fd0164ac38e861
+ type: rasterhash
+
+
# See ../README.md for a description of the file format