This commit is contained in:
Milos Kozak 2018-03-11 16:38:30 +01:00
parent 6cf849ce76
commit 2c21571cf4

View file

@ -219,7 +219,7 @@ public class Profile {
if (isValid) {
// Check for hours alignment
PumpInterface pump = MainApp.getConfigBuilder().getActivePump();
if (!pump.getPumpDescription().is30minBasalRatesCapable) {
if (pump != null && !pump.getPumpDescription().is30minBasalRatesCapable) {
for (int index = 0; index < basal_v.size(); index++) {
long secondsFromMidnight = basal_v.keyAt(index);
if (secondsFromMidnight % 3600 != 0) {