Skip to content

Commit

Permalink
fix a bug in reading union field
Browse files Browse the repository at this point in the history
  • Loading branch information
Xuejun Yang committed Jul 12, 2011
1 parent 6cee277 commit 6523901
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FactUnion.cpp
Expand Up @@ -196,7 +196,7 @@ FactUnion::is_nonreadable_field(const Variable *v, const std::vector<const Fact*
assert(v->is_union_field());
FactUnion tmp(v->field_var_of, v->get_field_id());
const FactUnion* fu = dynamic_cast<const FactUnion*>(find_related_fact(facts, &tmp));
if (fu && !tmp.imply(*fu)) {
if (fu==NULL || !tmp.imply(*fu)) {
return true;
}
}
Expand Down

0 comments on commit 6523901

Please sign in to comment.