Fixed exception on Caller.updatePlayer (#1179)

* Caller.updatePlayer(null, null) now fails silently
* Updated DKBans Extension

Fixes update call with null UUID

Affects issues:
- Close #1176
This commit is contained in:
Risto Lahtela 2019-10-06 11:07:21 +03:00 committed by GitHub
parent 0c38f6f8c6
commit d05ece6106
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -151,6 +151,9 @@ public class ExtensionServiceImplementation implements ExtensionService {
if (!gatherer.canCallEvent(event)) {
return;
}
if (playerUUID == null && playerName == null) {
return;
}
try {
logger.getDebugLogger().logOn(DebugChannels.DATA_EXTENSIONS, "Gathering values for: " + playerName);

View File

@ -21,7 +21,6 @@ import com.djrapitops.plan.extension.Caller;
import com.djrapitops.plan.extension.ExtensionServiceImplementation;
import com.djrapitops.plan.extension.implementation.providers.gathering.ProviderValueGatherer;
import com.djrapitops.plan.processing.Processing;
import com.djrapitops.plugin.utilities.Verify;
import java.util.UUID;
@ -48,8 +47,6 @@ public class CallerImplementation implements Caller {
@Override
public void updatePlayerData(UUID playerUUID, String playerName) {
Verify.nullCheck(playerUUID, () -> new IllegalArgumentException("'playerUUID' can not be null!"));
Verify.nullCheck(playerName, () -> new IllegalArgumentException("'playerName' can not be null!"));
processing.submitNonCritical(() -> extensionServiceImplementation.updatePlayerValues(gatherer, playerUUID, playerName, CallEvents.MANUAL));
}

View File

@ -7,7 +7,7 @@ dependencies {
compile 'com.djrapitops:Extension-BanManager:5.15.0-R0.5'
compile 'com.djrapitops:Extension-CoreProtect:2.16.0-R0.4'
compile 'com.djrapitops:Extension-DiscordSRV:1.16.6-R0.4'
compile 'com.djrapitops:Extension-DKBans:2.1.2-R0.1'
compile 'com.djrapitops:Extension-DKBans:2.1.2-R0.2'
compile 'com.djrapitops:Extension-DKCoins:3.0.5-R0.1'
compile 'com.djrapitops:Extension-EssentialsX:2.15.0-R0.3'
compile 'com.djrapitops:Extension-Factions:2.14.0-R0.1'