8303475: potential null pointer dereference in filemap.cpp

Reviewed-by: dholmes
This commit is contained in:
Calvin Cheung 2023-04-28 15:45:44 +00:00
parent cf799ba232
commit e1196584d5

@ -361,6 +361,7 @@ void SharedClassPathEntry::set_name(const char* name, TRAPS) {
}
void SharedClassPathEntry::copy_from(SharedClassPathEntry* ent, ClassLoaderData* loader_data, TRAPS) {
assert(ent != NULL, "sanity");
_type = ent->_type;
_is_module_path = ent->_is_module_path;
_timestamp = ent->_timestamp;