[hydrawise] Small change in handleRemoval (#14976)

Follow-up #14945

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
lolodomo
2023-05-11 21:58:13 +02:00
committed by GitHub
parent a65574a336
commit cc6ecb4372

View File

@@ -111,10 +111,7 @@ public class HydrawiseAccountHandler extends BaseBridgeHandler implements Access
@Override @Override
public void handleRemoval() { public void handleRemoval() {
OAuthClientService oAuthService = this.oAuthService; oAuthFactory.deleteServiceAndAccessToken(getThing().toString());
if (oAuthService != null) {
oAuthFactory.deleteServiceAndAccessToken(getThing().toString());
}
super.handleRemoval(); super.handleRemoval();
} }