cgeo/c-geo-opensource — Issue #1071: FC when GCVote user does not exist
Author: Lineflyer
Created: 2012-01-30 21:37:37+00:00
State: open

I tried to use c:geo with another account but accidently did not delete my GCVote password.
From the log I guess cgeo tries to get votings with a non existing user and crashes.

```
01-30 22:24:50.720 D/ (10827): [HYPOS] NOMOVE Time 60, PowerMode 2, GPSWeakSignal 0, GPSFixTime 11, IsPedestrian 0, DOE 3
01-30 22:24:50.955 I/global ( 4811): Loaded time zone names for en_US in 320ms.
01-30 22:24:50.955 D/cgeo ( 4811): 200 (1342 ms) POST http://www.geocaching.com/seek/nearest.aspx
01-30 22:24:50.965 I/cgeo ( 4811): Coordinates found in .loc file: 17
01-30 22:24:50.965 I/cgeo ( 4811): Trying to get ratings for 17 caches
01-30 22:24:51.020 D/dalvikvm( 4811): GC_CONCURRENT freed 1418K, 48% free 4849K/9159K, external 1902K/1905K, paused 2ms+3ms
01-30 22:24:51.025 W/PowerManagerService(10827): Timer 0x3->0x3|0x3
01-30 22:24:51.030 D/cgeo ( 4811): GET http://gcvote.com/getVotes.php?userName=Mybasicmemberuser&password=***&cacheIds=7b1eaabb-04fe-41b7-ba14-dae2a7a3adb2%2C30249612-bf18-4f53-98b3-56e7c05990b0%2Ceddbbb08-d5c8-4d6f-9c38-15a0de266f1d%2Cf97870a9-9029-4632-b9df-5d323bb54d0a%2C6f8c008f-eaa0-482c-b80f-2a3128dbe53f%2Cf5a1376c-fee1-4d67-a3ed-b4966e1b2eaa%2Ccae06e21-bb9b-4002-bcb8-82fa7a102f19%2C7e7c7d86-5193-4e09-838e-284af96aa00a%2Cae939952-9480-484d-b38c-8a1f6556417c%2Cf3683ecf-779a-4aea-95c2-479efab250ef%2Cb8f55ff2-1ceb-4c46-84a9-80c12f73d02a%2C7a27b7fc-fdc3-48d7-9c53-420cbc2c5fa4%2C2ee93aad-13a9-4150-9c46-daceb2ba022e%2C312ff7cb-485c-4234-8bbb-cdd30fe1b8b4%2C37380e4d-d5ac-4db5-a741-a553ef8c504f%2Cefeb583a-90ec-4d63-8763-ae0af8760b79%2Cc934924b-f8c1-4f04-a9e4-945c0971c1ea%2C7823f0b0-e572-4a42-8f4f-6aa9c58108a6%2C5083c13f-94b3-4d0e-b901-f990c75d7894%2Cc8b5a5fa-3bc4-4c2d-a965-64e8dcccab83&version=cgeo
01-30 22:24:51.120 D/cgeo ( 4811): 200 (87 ms) GET http://gcvote.com/getVotes.php?userName=Zubu&password=***&cacheIds=7b1eaabb-04fe-41b7-ba14-dae2a7a3adb2%2C30249612-bf18-4f53-98b3-56e7c05990b0%2Ceddbbb08-d5c8-4d6f-9c38-15a0de266f1d%2Cf97870a9-9029-4632-b9df-5d323bb54d0a%2C6f8c008f-eaa0-482c-b80f-2a3128dbe53f%2Cf5a1376c-fee1-4d67-a3ed-b4966e1b2eaa%2Ccae06e21-bb9b-4002-bcb8-82fa7a102f19%2C7e7c7d86-5193-4e09-838e-284af96aa00a%2Cae939952-9480-484d-b38c-8a1f6556417c%2Cf3683ecf-779a-4aea-95c2-479efab250ef%2Cb8f55ff2-1ceb-4c46-84a9-80c12f73d02a%2C7a27b7fc-fdc3-48d7-9c53-420cbc2c5fa4%2C2ee93aad-13a9-4150-9c46-daceb2ba022e%2C312ff7cb-485c-4234-8bbb-cdd30fe1b8b4%2C37380e4d-d5ac-4db5-a741-a553ef8c504f%2Cefeb583a-90ec-4d63-8763-ae0af8760b79%2Cc934924b-f8c1-4f04-a9e4-945c0971c1ea%2C7823f0b0-e572-4a42-8f4f-6aa9c58108a6%2C5083c13f-94b3-4d0e-b901-f990c75d7894%2Cc8b5a5fa-3bc4-4c2d-a965-64e8dcccab83&version=cgeo
01-30 22:24:51.200 D/ (10827): [HYPOS] NOMOVE Time 241, PowerMode 2, GPSWeakSignal 0, GPSFixTime 11, IsPedestrian 0, DOE 3
01-30 22:24:51.270 D/AndroidRuntime( 4811): Shutting down VM
01-30 22:24:51.270 W/dalvikvm( 4811): threadid=1: thread exiting with uncaught exception (group=0x4001e578)
01-30 22:24:51.275 E/AndroidRuntime( 4811): FATAL EXCEPTION: main
01-30 22:24:51.275 E/AndroidRuntime( 4811): java.lang.NullPointerException
01-30 22:24:51.275 E/AndroidRuntime( 4811):	at cgeo.geocaching.ui.CacheListAdapter.getView(CacheListAdapter.java:592)
01-30 22:24:51.275 E/AndroidRuntime( 4811):	at android.widget.HeaderViewListAdapter.getView(HeaderViewListAdapter.java:220)
01-30 22:24:51.275 E/AndroidRuntime( 4811):	at android.widget.AbsListView.obtainView(AbsListView.java:1577)
01-30 22:24:51.275 E/AndroidRuntime( 4811):	at android.widget.ListView.makeAndAddView(ListView.java:1776)
01-30 22:24:51.275 E/AndroidRuntime( 4811):	at android.widget.ListView.fillDown(ListView.java:701)
01-30 22:24:51.275 E/AndroidRuntime( 4811):	at android.widget.ListView.fillFromTop(ListView.java:758)
01-30 22:24:51.275 E/AndroidRuntime( 4811):	at android.widget.ListView.layoutChildren(ListView.java:1615)
01-30 22:24:51.275 E/AndroidRuntime( 4811):	at android.widget.AbsListView.onLayout(AbsListView.java:1407)
01-30 22:24:51.275 E/AndroidRuntime( 4811):	at android.view.View.layout(View.java:7228)
01-30 22:24:51.275 E/AndroidRuntime( 4811):	at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1254)
01-30 22:24:51.275 E/AndroidRuntime( 4811):	at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1130)
01-30 22:24:51.275 E/AndroidRuntime( 4811):	at android.widget.LinearLayout.onLayout(LinearLayout.java:1047)
01-30 22:24:51.275 E/AndroidRuntime( 4811):	at android.view.View.layout(View.java:7228)
01-30 22:24:51.275 E/AndroidRuntime( 4811):	at android.widget.FrameLayout.onLayout(FrameLayout.java:338)
01-30 22:24:51.275 E/AndroidRuntime( 4811):	at android.view.View.layout(View.java:7228)
01-30 22:24:51.275 E/AndroidRuntime( 4811):	at android.widget.FrameLayout.onLayout(FrameLayout.java:338)
01-30 22:24:51.275 E/AndroidRuntime( 4811):	at android.view.View.layout(View.java:7228)
01-30 22:24:51.275 E/AndroidRuntime( 4811):	at android.view.ViewRoot.performTraversals(ViewRoot.java:1148)
01-30 22:24:51.275 E/AndroidRuntime( 4811):	at android.view.ViewRoot.handleMessage(ViewRoot.java:1868)
01-30 22:24:51.275 E/AndroidRuntime( 4811):	at android.os.Handler.dispatchMessage(Handler.java:99)
01-30 22:24:51.275 E/AndroidRuntime( 4811):	at android.os.Looper.loop(Looper.java:130)
01-30 22:24:51.275 E/AndroidRuntime( 4811):	at android.app.ActivityThread.main(ActivityThread.java:3691)
01-30 22:24:51.275 E/AndroidRuntime( 4811):	at java.lang.reflect.Method.invokeNative(Native Method)
01-30 22:24:51.275 E/AndroidRuntime( 4811):	at java.lang.reflect.Method.invoke(Method.java:507)
01-30 22:24:51.275 E/AndroidRuntime( 4811):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:907)
01-30 22:24:51.275 E/AndroidRuntime( 4811):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:665)
01-30 22:24:51.275 E/AndroidRuntime( 4811):	at dalvik.system.NativeStart.main(Native Method)
01-30 22:24:51.280 W/ActivityManager(10827): Force finishing activity cgeo.geocaching/.cgeocaches
01
```