Change the ExcludeEntry to use a name component directly.
diff --git a/ndn-cpp/name.hpp b/ndn-cpp/name.hpp
index 2baee7d..5d6fb19 100644
--- a/ndn-cpp/name.hpp
+++ b/ndn-cpp/name.hpp
@@ -50,8 +50,9 @@
      */
     void get(struct ndn_NameComponent &componentStruct) const 
     {
-      componentStruct.value = (unsigned char *)&value_[0];
       componentStruct.valueLength = value_.size(); 
+      if (value_.size() > 0)
+        componentStruct.value = (unsigned char *)&value_[0];
     }
   
     /**