X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FGUI%2Fdialog.cxx;h=d09d572e98168a6b1fcbce6b5e9e391fb49a1ce9;hb=a04aad7a99b2e31f14a1f1e59b38178ad9df00ff;hp=6d9dafe19a742a2237fc1855f40fe22e52c5a76e;hpb=71c8889cbfa9685d3af4a38b9acd1e903fd5bb08;p=flightgear.git diff --git a/src/GUI/dialog.cxx b/src/GUI/dialog.cxx index 6d9dafe19..d09d572e9 100644 --- a/src/GUI/dialog.cxx +++ b/src/GUI/dialog.cxx @@ -304,7 +304,9 @@ copy_from_pui (puObject * object, SGPropertyNode * node) // Special case to handle lists, as getStringValue cannot be overridden if(object->getType() & PUCLASS_LIST) { - node->setStringValue(((puList *) object)->getListStringValue()); + const char *s = ((puList *) object)->getListStringValue(); + if (s) + node->setStringValue(s); } else {