| Index: util/mach/exception_ports.cc
|
| diff --git a/util/mach/exception_ports.cc b/util/mach/exception_ports.cc
|
| index b96517c64bdbc513777eb12ebdfc9e962bef4fa7..2ebfacf12fa3335a7e054022fb2fc81baddbd825 100644
|
| --- a/util/mach/exception_ports.cc
|
| +++ b/util/mach/exception_ports.cc
|
| @@ -99,12 +99,14 @@ bool ExceptionPorts::GetExceptionPorts(
|
|
|
| handlers->clear();
|
| for (mach_msg_type_number_t index = 0; index < handler_count; ++index) {
|
| - ExceptionHandler handler;
|
| - handler.mask = masks[index];
|
| - handler.port = ports[index];
|
| - handler.behavior = behaviors[index];
|
| - handler.flavor = flavors[index];
|
| - handlers->push_back(handler);
|
| + if (ports[index] != MACH_PORT_NULL) {
|
| + ExceptionHandler handler;
|
| + handler.mask = masks[index];
|
| + handler.port = ports[index];
|
| + handler.behavior = behaviors[index];
|
| + handler.flavor = flavors[index];
|
| + handlers->push_back(handler);
|
| + }
|
| }
|
|
|
| return true;
|
|
|