/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2014, by the GROMACS development team, led by
+ * Copyright (c) 2014,2015, by the GROMACS development team, led by
* Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
* and including many others, as listed in the AUTHORS file in the
* top-level source directory and at http://www.gromacs.org.
SIP_PYOBJECT /* char** */ name /NoSetter/ { /* Pointer to the residue name */
%GetCode
- sipPy = sipBuildResult(NULL, "A", *(sipCpp->name));
+ sipPy = sipBuildResult(NULL, "A", (sipCpp->name) ? *(sipCpp->name) : NULL);
%End
};
int nr; /* Residue number */
char chainid; /* Chain identifier written/read to pdb */
SIP_PYOBJECT /* char** */ rtp /NoSetter/ { /* rtp building block name (optional) */
%GetCode
- sipPy = sipBuildResult(NULL, "A", *(sipCpp->rtp));
+ sipPy = sipBuildResult(NULL, "A", (sipCpp->rtp) ? *(sipCpp->rtp) : NULL);
%End
};
};