NPE in dse-java-driver-core 1.6.8 QueryConsistencyException

Description

I’m seeing null pointers when attempting to get the host off a QueryConsistencyException.

Presumable because “address” is null:

I’m fine if the method returns null, so perhaps just a ternary statement checking address for null would suffice. Please address when possible.

Thanks,
Dan

Environment

None

Pull Requests

None

Activity

Show:
Alexandre Dutra
August 9, 2018, 10:04 AM

Other CoordinatorException subtypes must be amended as well, at a first glance the following two could throw NPE as well:

  1. UnavailableException

  2. AlreadyExistsException

Maybe just to be on the safe side it would be a good idea to amend all of them; besides, I see that the following two are alrady protecting themselves against NPE:

  1. InvalidQueryException

  2. ConnectionException

Fixed

Assignee

Andy Tolbert

Reporter

Bogdan Coman

Labels

None

PM Priority

None

Reproduced in

None

Affects versions

None

Fix versions

Pull Request

None

Doc Impact

None

Size

None

External issue ID

None

External issue ID

None

Priority

Minor
Configure