[infrastructure] add external null-annotations (#8848)
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
This commit is contained in:
@@ -149,7 +149,12 @@ class SpotifyConnector {
|
||||
}
|
||||
}
|
||||
} catch (ExecutionException e) {
|
||||
future.completeExceptionally(e.getCause());
|
||||
Throwable cause = e.getCause();
|
||||
if (cause != null) {
|
||||
future.completeExceptionally(cause);
|
||||
} else {
|
||||
future.completeExceptionally(e);
|
||||
}
|
||||
} catch (RuntimeException | TimeoutException e) {
|
||||
future.completeExceptionally(e);
|
||||
} catch (InterruptedException e) {
|
||||
|
||||
@@ -218,7 +218,7 @@ public class SpotifyBridgeHandler extends BaseBridgeHandler
|
||||
|
||||
@Override
|
||||
public String getUser() {
|
||||
return thing.getProperties().get(PROPERTY_SPOTIFY_USER);
|
||||
return thing.getProperties().getOrDefault(PROPERTY_SPOTIFY_USER, "");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user