tlaukkanen / mobile-trail-explorer

Automatically exported from code.google.com/p/mobile-trail-explorer
2 stars 0 forks source link

NPE in getCenterPositionWhenMoving #164

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Fresh installation of MTE 1.13 / 1.14(beta) / trunk
no paired gps

nokia 6230i (or emulator)

When moving direction keys right after loading, MTE fails with an null
pointer exception at
MercatorMapProvider.java line 133:

WGS84Position centerPos = mdc.getMapCenter().getAsWGS84Position();

the getMapCenter() returns null.

Original issue reported on code.google.com by ttyri...@gmail.com on 8 Mar 2009 at 3:14

GoogleCodeExporter commented 9 years ago
Thanks for this. Some phones consume this error, which probably explains why it
hasn't been picked up before. I've added a null check around that call. 

Original comment by gdjo...@gmail.com on 8 Mar 2009 at 6:08