coverity 263 check if variable is null before dereferencing it
authorsahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 2 Oct 2007 08:33:38 +0000 (08:33 +0000)
committersahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 2 Oct 2007 08:33:38 +0000 (08:33 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23046 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-jxta.c

index 4bc8e0604270ad5370d4a2698c0671751872a51e..0b392d6cb68b211e839708a6ff1af1d0265895f3 100644 (file)
@@ -862,8 +862,9 @@ static int dissect_jxta_stream(tvbuff_t * tvb, packet_info * pinfo, proto_tree *
 
             if (NULL != tpt_conversation) {
                 tpt_conv_data = (jxta_stream_conversation_data *) conversation_get_proto_data(tpt_conversation, proto_jxta);
-
-                peer_conversation = get_peer_conversation(pinfo, tpt_conv_data, TRUE);
+               if (tpt_conv_data) {
+                 peer_conversation = get_peer_conversation(pinfo, tpt_conv_data, TRUE);
+               }
             }
             
             /* Use our source and destination addresses if we have them */