Fixed bug where pointer iserializer can be NULL

This commit is contained in:
Lee Clagett
2017-08-04 23:04:42 -04:00
parent eaf85795f3
commit dd09b03d33
2 changed files with 76 additions and 2 deletions

View File

@@ -459,6 +459,12 @@ basic_iarchive_impl::load_pointer(
cobject_id & co = cobject_id_vector[i];
bpis_ptr = co.bpis_ptr;
if (bpis_ptr == NULL) {
boost::serialization::throw_exception(
archive_exception(archive_exception::unregistered_class)
);
}
load_preamble(ar, co);
// extra line to evade borland issue