diff --git a/aeron-samples/src/main/java/io/aeron/samples/EmbeddedPingPong.java b/aeron-samples/src/main/java/io/aeron/samples/EmbeddedPingPong.java
index <HASH>..<HASH> 100644
--- a/aeron-samples/src/main/java/io/aeron/samples/EmbeddedPingPong.java
+++ b/aeron-samples/src/main/java/io/aeron/samples/EmbeddedPingPong.java
@@ -164,6 +164,11 @@ public class EmbeddedPingPong
         final Subscription pongSubscription,
         final int numMessages)
     {
+        while (pongSubscription.hasNoImages())
+        {
+            Thread.yield();
+        }
+
         final Image image = pongSubscription.getImage(0);
 
         for (int i = 0; i < numMessages; i++)
[Java] Check for images before calling getImage.