We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea57feb commit b6d1705Copy full SHA for b6d1705
src/polygon.c
@@ -918,6 +918,14 @@ spherepoly_rad(PG_FUNCTION_ARGS)
918
919
np = ArrayGetNItems(ARR_NDIM(float_vector), ARR_DIMS(float_vector));
920
921
+ if (ARR_HASNULL(float_vector))
922
+ {
923
+ elog( ERROR,
924
+ "spherepoly_rad: invalid array has null values"
925
+ );
926
+ PG_RETURN_NULL();
927
+ }
928
+
929
if (np < 6 || np % 2 != 0)
930
{
931
elog( ERROR,
@@ -960,6 +968,14 @@ spherepoly_deg(PG_FUNCTION_ARGS)
960
968
961
969
962
970
971
972
973
974
+ "spherepoly_deg: invalid array has null values"
975
976
977
978
963
979
964
980
965
981
0 commit comments