-
-
Notifications
You must be signed in to change notification settings - Fork 99
Postgres: NPE executing command when portal is null #30
Copy link
Copy link
Closed
Description
ArcadeDB Version: 21.9.1-SNAPSHOT
JDK Version: N/A
OS: N/A
Expected behavior
if the portal is null, the "no data" message should be written to the channel
Actual behavior
the "no data" is sent to the channel, but also a NPE is raised because also a writeCommandComplete() is executed.
arcadedb/postgresw/src/main/java/com/arcadedb/postgres/PostgresNetworkExecutor.java
Line 279 in bb85560
| if (portal == null) { |
if (portal == null) {
writeNoData();
writeCommandComplete(portal.query, portal.cachedResultset == null ? 0 : portal.cachedResultset.size());I think that we could just drop the writeCommandComplete() statement.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels