make the code match the dox doc
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Thu, 07 Jun 2007 12:29:38 +0200
changeset 878 37cbce7d5b5c
parent 877 0d2f96b69c47
child 879 8879bb2040bf
make the code match the dox doc
src/common/packet-printer.cc
--- a/src/common/packet-printer.cc	Thu Jun 07 12:29:27 2007 +0200
+++ b/src/common/packet-printer.cc	Thu Jun 07 12:29:38 2007 +0200
@@ -97,7 +97,10 @@
   struct PacketPrinter::FragmentInformation info;
   info.start = 0;
   info.end = size;
-  m_defaultPrinter (os, packetUid, size, name, info);
+  if (!m_defaultPrinter.IsNull ())
+    {
+      m_defaultPrinter (os, packetUid, size, name, info);
+    }
 }
 void 
 PacketPrinter::PrintChunkFragment (uint32_t chunkUid,
@@ -122,7 +125,10 @@
           return;
         }
     }
-  m_defaultPrinter (os, packetUid, size, name, info);
+  if (!m_defaultPrinter.IsNull ())
+    {
+      m_defaultPrinter (os, packetUid, size, name, info);
+    }
 }
 void 
 PacketPrinter::PrintPayload (std::ostream &os, uint32_t packetUid, uint32_t size,