mirror of
https://github.com/boostorg/serialization.git
synced 2026-02-01 08:52:08 +00:00
Fixed bug where pointer iserializer can be NULL
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user