Ignore the null Sound.

This commit is contained in:
asofold 2018-05-23 09:31:47 +02:00
parent d0235e2358
commit 481d2c060f
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ public class SoundDistance extends BaseAdapter {
private boolean isSoundMonitoredLatest(final PacketContainer packetContainer) {
StructureModifier<Sound> sounds = packetContainer.getSoundEffects();
for (final Sound sound : sounds.getValues()) {
if (effectNames.contains(sound.name())) {
if (sound != null && effectNames.contains(sound.name())) {
//debug(null, "MONITOR SOUND: " + sound);
return true;
}