From ebc617c97c94a62b286b7e5f7ff56c4a968ff048 Mon Sep 17 00:00:00 2001 From: dimitr Date: Fri, 13 Apr 2007 12:21:22 +0000 Subject: [PATCH] Backported Claudio's fix for corrupted dbs. It also fixes CORE-1205 (on the server side). --- src/jrd/evl.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/jrd/evl.cpp b/src/jrd/evl.cpp index a8b8749b16..00abca924b 100644 --- a/src/jrd/evl.cpp +++ b/src/jrd/evl.cpp @@ -1169,7 +1169,9 @@ bool EVL_field(jrd_rel* relation, Record* record, USHORT id, dsc* desc) MET_scan_relation(tdbb, relation); } - jrd_fld* temp_field = (*relation->rel_fields)[id]; + jrd_fld* temp_field = NULL; + if (id < relation->rel_fields->count()) + temp_field = (*relation->rel_fields)[id]; if (temp_field) {