Skip to content

Postgres: NPE executing command when portal is null #30

@giastfader

Description

@giastfader

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.

      if (portal == null) {
        writeNoData();
        writeCommandComplete(portal.query, portal.cachedResultset == null ? 0 : portal.cachedResultset.size());

I think that we could just drop the writeCommandComplete() statement.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions