mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-09-17 07:46:00 -06:00
forgot checking for null arguments
This commit is contained in:
@@ -1548,7 +1548,9 @@ void PgfParser::final_item(State *state, CCat *ccat, Item *item, interval_t valu
|
|||||||
}
|
}
|
||||||
for (size_t i = 0; i < estate->n_args; i++) {
|
for (size_t i = 0; i < estate->n_args; i++) {
|
||||||
estate->args[i] = item->args[i];
|
estate->args[i] = item->args[i];
|
||||||
estate->prob += estate->args[i]->viterbi_prob;
|
if (estate->args[i] != NULL) {
|
||||||
|
estate->prob += estate->args[i]->viterbi_prob;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
queue.push_back(estate);
|
queue.push_back(estate);
|
||||||
std::push_heap(queue.begin(), queue.end(), estate_comp);
|
std::push_heap(queue.begin(), queue.end(), estate_comp);
|
||||||
|
|||||||
Reference in New Issue
Block a user