altosui: Don't deref null pyros when saving altimeter config
authorKeith Packard <keithp@keithp.com>
Thu, 28 Mar 2013 05:11:53 +0000 (22:11 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 28 Mar 2013 05:11:53 +0000 (22:11 -0700)
commit6fe32e0fc407522101e805cf2653253cb3cee291
treeec4182cb4ab559e179687ecf4340edc54fc5e986
parent985cd22b941415b1ae2709ae1ab6b60c3d815ec1
altosui: Don't deref null pyros when saving altimeter config

The check for no pyro config is to compare npyros against zero rather
than check the length of the pyros array as the latter may be null.

Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib/AltosConfigData.java