This repository has been archived by the owner on Sep 26, 2023. It is now read-only.
NPE is thrown when setting log level lower than FINER #1201
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Currently I can't set the log level lower than
FINER
because this library throws a NPE. The cause of this problem is a missing pair of parentheses in https://github.com/googleapis/gax-java/blob/master/gax/src/main/java/com/google/api/gax/retrying/BasicRetryingFuture.java#L179.This is the current snippet:
Which is equivalent to:
This results in calling
callable.getClass().getEnclosingMethod().getName()
even ifcallable.getClass().getEnclosingMethod()
isnull
.For a potential fix, see #1198.
The text was updated successfully, but these errors were encountered: