git-svn-id: http://ltt.polymtl.ca/svn@182 04897980-b3bd-0310-b5e0-8ef037075253
authoryangxx <yangxx@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 20 Aug 2003 15:16:01 +0000 (15:16 +0000)
committeryangxx <yangxx@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 20 Aug 2003 15:16:01 +0000 (15:16 +0000)
ltt/branches/poly/ltt/event.c
ltt/branches/poly/ltt/type.c

index e26eb451f7dfc5f235556f76a2ec5998f21c22b6..ad7e6c33366fb0e822b8dd2e19993cd1ece75b9e 100644 (file)
@@ -136,6 +136,7 @@ LttField *ltt_event_field(LttEvent *e)
   LttEventType * event_type = ltt_event_eventtype(e);
   if(!event_type) return NULL;
   field = event_type->root_field;
+  if(!field) return NULL;
 
   //check if the field need refresh
   if(e->which_block != event_type->latest_block ||
index 710803de252b0a48aae2870e0477cb93d7168886..a2c73f229c428f9c42822a6a9aa8892c7606d72c 100644 (file)
@@ -93,6 +93,7 @@ unsigned ltt_eventtype_id(LttEventType *et)
 
 LttType *ltt_eventtype_type(LttEventType *et)
 {
+  if(!et->root_field) return NULL;
   return et->root_field->field_type;
 }
 
@@ -311,6 +312,7 @@ LttField *ltt_field_member(LttField *f, unsigned i)
 
 LttType *ltt_field_type(LttField *f)
 {
+  if(!f)return NULL;
   return f->field_type;
 }
 
This page took 0.024413 seconds and 4 git commands to generate.