Skip to content

Commit 25c7a7d

Browse files
committed
fix(core): Fix null check in IAM logic
1 parent 33ab80b commit 25c7a7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/com/ibm/watson/developer_cloud/service/security/IamTokenManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ private boolean isAccessTokenExpired() {
162162
* @returns whether the current managed refresh token is expired or not
163163
*/
164164
private boolean isRefreshTokenExpired() {
165-
if (tokenData.getExpiration() != null) {
165+
if (tokenData.getExpiration() == null) {
166166
return true;
167167
}
168168

0 commit comments

Comments
 (0)