diff --git a/examples/rr.c b/examples/rr.c
index 6bfb78217818c50a65dcf3ee36b1bafc09606ec0..8aa48e675c38fc29cf45377121d8f13c7f0848c8 100644
--- a/examples/rr.c
+++ b/examples/rr.c
@@ -181,8 +181,10 @@ const HParser* init_rdata(uint16_t type) {
 
   // All parsers must consume their input exactly.
   for(uint16_t i; i<sizeof(parsers); i++) {
-    parsers[i] = h_action(h_sequence(parsers[i], h_end_p(), NULL),
-			  act_index0);
+    if(parsers[i]) {
+      parsers[i] = h_action(h_sequence(parsers[i], h_end_p(), NULL),
+			    act_index0);
+    }
   }
 
   inited = 1;