fix NPE
This commit is contained in:
parent
6cf849ce76
commit
2c21571cf4
1 changed files with 1 additions and 1 deletions
|
@ -219,7 +219,7 @@ public class Profile {
|
||||||
if (isValid) {
|
if (isValid) {
|
||||||
// Check for hours alignment
|
// Check for hours alignment
|
||||||
PumpInterface pump = MainApp.getConfigBuilder().getActivePump();
|
PumpInterface pump = MainApp.getConfigBuilder().getActivePump();
|
||||||
if (!pump.getPumpDescription().is30minBasalRatesCapable) {
|
if (pump != null && !pump.getPumpDescription().is30minBasalRatesCapable) {
|
||||||
for (int index = 0; index < basal_v.size(); index++) {
|
for (int index = 0; index < basal_v.size(); index++) {
|
||||||
long secondsFromMidnight = basal_v.keyAt(index);
|
long secondsFromMidnight = basal_v.keyAt(index);
|
||||||
if (secondsFromMidnight % 3600 != 0) {
|
if (secondsFromMidnight % 3600 != 0) {
|
||||||
|
|
Loading…
Reference in a new issue