logger.warn("Player IP is unknown");
} else if (VALID_REMOTE_KEYS.contains(aKey)) {
String remoteCode = (String) getConfig().get(PlayerConfiguration.REMOTE_CODE);
- if (remoteCode != null) {
+ if (remoteCode != null && !remoteCode.isBlank()) {
try {
getManager(PlayerManager.class).sendKey(ip.toCanonicalString(), remoteCode, aKey, longPress, count);
} catch (FreeboxException e) {
logger.warn("Error sending key: {}", e.getMessage());
}
} else {
- logger.warn("A remote code must be configured in the on the player thing.");
+ logger.warn("A remote code must be configured on the player thing.");
}
} else {
logger.warn("Key '{}' is not a valid key expression", key);