Showing the changes to Source/Libraries/TimeSeriesPlatformLibrary/Data/DataColumn.cpp (1 of 4 files). Show all
Unified · Split
| @@ -23,6 +23,7 @@ · 22 unmodified lines | ||
| 23 | 23 | |
| 24 | 24 | #include "DataColumn.h" |
| 25 | 25 | #include "DataTable.h" |
| 26 | +#include "DataSet.h" | |
| 26 | 27 | |
| 27 | 28 | using namespace std; |
| 28 | 29 | using namespace GSF::Data; |
| @@ -59,6 +60,8 @@ DataColumn::DataColumn(DataTablePtr parent, string name, DataType type) : · 30 unmodified lines | ||
| 59 | 60 | m_type(type), |
| 60 | 61 | m_index(-1) |
| 61 | 62 | { |
| 63 | + if (m_parent == nullptr) | |
| 64 | + throw DataSetException("DataTable parent is null"); | |
| 62 | 65 | } |
| 63 | 66 | |
| 64 | 67 | DataColumn::~DataColumn() = default; |