Fix another NPE.

This commit is contained in:
Johannes Mockenhaupt 2018-04-24 23:00:22 +02:00
parent f4bafc6260
commit 60fbb1eeba
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -489,7 +489,7 @@ public class WizardDialog extends DialogFragment implements OnClickListener, Com
Double c_cob = 0d;
if (cobCheckbox.isChecked()) {
CobInfo cobInfo = IobCobCalculatorPlugin.getPlugin().getCobInfo(false, "Wizard COB");
if (cobInfo != null)
if (cobInfo != null && cobInfo.displayCob != null)
c_cob = cobInfo.displayCob;
}