altosdroid: Don't crash when the map is touched
authorKeith Packard <keithp@keithp.com>
Fri, 13 Jun 2014 22:53:30 +0000 (15:53 -0700)
committerKeith Packard <keithp@keithp.com>
Fri, 13 Jun 2014 22:53:30 +0000 (15:53 -0700)
commit191ea4a7bbcb22d70c648a9ba746f1061e6f74cb
tree52d7e7007de864ddbc6de1c95fac05fd6650b162
parent3f7e885055f8a97f334e0cd3163b760b174114b6
altosdroid: Don't crash when the map is touched

The map 'canScroll' method was crashing when dereferencing a null
value somewhere. Just check all of them and bail instead of crashing.

Signed-off-by: Keith Packard <keithp@keithp.com>
altosdroid/src/org/altusmetrum/AltosDroid/AltosViewPager.java