mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 08:25:03 -05:00
ERT: Added NULL pointer check
p4#: 20292
This commit is contained in:
1 parent
1c8bb6e38e
commit
f57ed233a1
1 file changed
+2
-1
+2
-1
@@ -2991,7 +2991,8 @@ int ecl_grid_get_active_fracture_index3(const ecl_grid_type * ecl_grid , int i ,
|
||||
*/
|
||||
|
||||
int ecl_grid_get_active_fracture_index1(const ecl_grid_type * ecl_grid , int global_index) {
|
||||
return ecl_grid->fracture_index_map[global_index];
|
||||
if (!ecl_grid->fracture_index_map) return -1;
|
||||
return ecl_grid->fracture_index_map[global_index];
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user