mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed an issue where the query tool was crashing when an empty geometry was being rendered. #7655
This commit is contained in:
parent
b0d4200aa0
commit
5d008f0525
@ -68,6 +68,10 @@ function parseEwkbData(rows, column) {
|
||||
let value = item[key];
|
||||
let buffer = Buffer.from(value, 'hex');
|
||||
let geometry = WkxGeometry.parse(buffer);
|
||||
if (isNaN(geometry.x) || isNaN(geometry.y)){
|
||||
unsupportedRows.push(item);
|
||||
return true;
|
||||
}
|
||||
if (geometry.hasZ) {
|
||||
geometries3D.push(geometry);
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user