Fixed nullptr derefence in LINCS error
commitb23d123479a36a28a734b75266e40d83ad99056a
authorBerk Hess <hess@kth.se>
Wed, 12 Dec 2018 09:23:46 +0000 (12 10:23 +0100)
committerPaul Bauer <paul.bauer.q@gmail.com>
Fri, 14 Dec 2018 13:25:51 +0000 (14 14:25 +0100)
tree4d75438eecc7730839794254eeb8a1c8b561f071
parent07ea0377472ffc18c16fbd3dbc38c7cb1f63c484
Fixed nullptr derefence in LINCS error

Somehow a dereferenced nullptr could be passed as a reference
to gmx_multisim_t to the Constraint factory function.
Changed the reference in the Constraint object to a pointer.

Fixed #2803

Change-Id: I4806069973067d27078a1324d18a406c7b3e227d
src/gromacs/mdlib/constr.cpp
src/gromacs/mdlib/constr.h
src/gromacs/mdlib/lincs.cpp
src/gromacs/mdlib/lincs.h
src/gromacs/mdrun/runner.cpp