Skip to content

Commit 00fe7df

Browse files
committed
a null check
Signed-off-by: Howard Pritchard <[email protected]>
1 parent 5930150 commit 00fe7df

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ompi/mpi/tool/mpit_common.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ bool ompit_obj_invalid(void *obj_handle)
101101
opal_class_t *opal_class;
102102
const char *obj_name = NULL;
103103

104+
if (NULL == obj_handle) {
105+
goto fn_exit;
106+
}
107+
104108
/* we are actually evaulating a pointer to an OMPI MPI opaque handle */
105109
opal_obj = *(opal_object_t **)obj_handle;
106110

0 commit comments

Comments
 (0)