diff options
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/diveplanner.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp index da5bb53d6..ac2662c2b 100644 --- a/qt-ui/diveplanner.cpp +++ b/qt-ui/diveplanner.cpp @@ -1468,6 +1468,9 @@ void DivePlannerPointsModel::createPlan() char *cache = NULL; tempDive = NULL; + if (!diveplan.dp) + return cancelPlan(); + createTemporaryPlan(); plan(&diveplan, &cache, &tempDive, isPlanner()); copy_cylinders(stagingDive, tempDive); |