Showing the changes to Source/Libraries/TimeSeriesPlatformLibrary/Data/DataTable.cpp (1 of 4 files). Show all
Unified · Split
| @@ -22,6 +22,7 @@ · 21 unmodified lines | ||
| 22 | 22 | //****************************************************************************************************** |
| 23 | 23 | |
| 24 | 24 | #include "DataTable.h" |
| 25 | +#include "DataSet.h" | |
| 25 | 26 | |
| 26 | 27 | using namespace std; |
| 27 | 28 | using namespace GSF::TimeSeries; |
| @@ -33,6 +34,8 @@ DataTable::DataTable(DataSetPtr parent, string name) : · 5 unmodified lines | ||
| 33 | 34 | m_parent(std::move(parent)), |
| 34 | 35 | m_name(std::move(name)) |
| 35 | 36 | { |
| 37 | + if (m_parent == nullptr) | |
| 38 | + throw DataSetException("DataSet parent is null"); | |
| 36 | 39 | } |
| 37 | 40 | |
| 38 | 41 | DataTable::~DataTable() = default; |