diff --git a/connector/src/main/java/org/geysermc/connector/entity/living/animal/StriderEntity.java b/connector/src/main/java/org/geysermc/connector/entity/living/animal/StriderEntity.java index ee6815d15..7c37db33d 100644 --- a/connector/src/main/java/org/geysermc/connector/entity/living/animal/StriderEntity.java +++ b/connector/src/main/java/org/geysermc/connector/entity/living/animal/StriderEntity.java @@ -78,7 +78,10 @@ public class StriderEntity extends AnimalEntity { // Update the passengers if we have any for (long passenger : passengers) { - session.getEntityCache().getEntityByJavaId(passenger).updateBedrockMetadata(session); + Entity passengerEntity = session.getEntityCache().getEntityByJavaId(passenger); + if (passengerEntity != null) { + passengerEntity.updateBedrockMetadata(session); + } } super.updateBedrockMetadata(session);