/*
* 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 name /NoSetter/ { // Name of the topology
%GetCode
- sipPy = sipBuildResult(NULL, "A", *(sipCpp->name));
+ // name is stored as char**, when the outer pointer is null, let sip wrap it as None
+ sipPy = sipBuildResult(NULL, "A", (sipCpp->name) ? *(sipCpp->name) : NULL);
%End
};
//t_idef idef; [> The interaction function definition <]