mirror of
https://github.com/OPM/opm-upscaling.git
synced 2025-02-25 18:45:23 -06:00
fixed: make sure we do not dereference null ptrs
This commit is contained in:
parent
c02d4ffeb8
commit
fce2056abf
@ -70,7 +70,7 @@ void ASMHandler<GridType>::addDOF(int row, int erow,
|
||||
}
|
||||
}
|
||||
}
|
||||
if (S)
|
||||
if (S && b)
|
||||
(*b)[row] += scale*(*S)[erow];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user