File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
src/core/modules/entities Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -147,6 +147,10 @@ BoostSendVarProxyFn SendPropSharedExt::get_proxy_function(SendProp *pSendProp)
147147 if (pSendProp->GetType () == DPT_DataTable)
148148 BOOST_RAISE_EXCEPTION (PyExc_TypeError, " %s is a DataTable." , pSendProp->GetName ());
149149
150+ if (!pSendProp->GetProxyFn ()) {
151+ BOOST_RAISE_EXCEPTION (PyExc_ValueError, " %s has no proxy function." , pSendProp->GetName ());
152+ }
153+
150154 return BoostSendVarProxyFn (pSendProp->GetProxyFn ());
151155}
152156
@@ -158,6 +162,10 @@ BoostDataTableProxyFn SendPropSharedExt::get_data_table_proxy_function(SendProp
158162 if (pSendProp->GetType () != DPT_DataTable)
159163 BOOST_RAISE_EXCEPTION (PyExc_TypeError, " %s is not a DataTable." , pSendProp->GetName ());
160164
165+ if (!pSendProp->GetDataTableProxyFn ()) {
166+ BOOST_RAISE_EXCEPTION (PyExc_ValueError, " %s has no data table proxy function." , pSendProp->GetName ());
167+ }
168+
161169 return BoostDataTableProxyFn (pSendProp->GetDataTableProxyFn ());
162170}
163171
You can’t perform that action at this time.
0 commit comments