8000 NPE when getting non-existing topic or subscription · Issue #987 · googleapis/google-cloud-java · GitHub
[go: up one dir, main page]

Skip to content

NPE when getting non-existing topic or subscription #987

@mziccard

Description

@mziccard

DefaultPubSubRpc,get returns a Future such that Future.get() returns null if the resource was not found. In PubSubImpl.

In PubSubImpl transform the result using (Topic/Subscription).fromPbFunction() which do not handle the null case.

Metadata

Metadata

Assignees

Labels

api: pubsubIssues related to the Pub/Sub API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0