[TIMOB-2922] Android: Facebook Module NPE on Logout
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T02:00:27.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.6.0 M07 |
Components | Android |
Labels | android, defect, release-1.6.0, reported-1.6.0 |
Reporter | Don Thorp |
Assignee | Bill Dawson |
Created | 2011-04-15T03:33:00.000+0000 |
Updated | 2011-04-17T02:00:27.000+0000 |
Description
Found in: #e1cb22a
- Mashup > Facebook > Login/Logout
- Login
- Press back button
- Login/Logout
- Press Logout
I/ActivityManager( 85): Displayed activity com.appcelerator.titanium/org.appcelerator.titanium.TiActivity: 234 ms (total 234 ms)
D/KrollContext( 2004): (kroll$15) [1207,222604] Running evaluated script: app://examples/facebook_login_logout.js
D/dalvikvm( 2004): GC_FOR_MALLOC freed 25979 objects / 4384184 bytes in 71ms
D/LoginButtonProxy( 2004): (kroll$15) [99,222703] Second constructor called
D/Facebook-Util( 2004): GET URL: https://api.facebook.com/restserver.php?access_token=134793934930%7C0e5b712c915b0558ffc8b434-712472015%7ClUYHI9lZmgT2491I1vvVrnXabL8&method=auth.expireSession&format=json
E/TiUIView( 2004): (main) [991,223694] TAP, TAP, TAP on [Ti.TiFacebookModuleLoginButton]
W/dalvikvm( 2004): threadid=28: thread exiting with uncaught exception (group=0x4001d7f0)
E/TiUncaughtHandler( 2004): (Thread-61) [280,223974] Sending event: exception on thread: Thread-61 msg:java.lang.NullPointerException; Titanium 1.6.0,2011/01/24 09:44,1cb22a
E/TiUncaughtHandler( 2004): java.lang.NullPointerException
E/TiUncaughtHandler( 2004): at ti.modules.titanium.facebook.LoginButton.updateButtonImage(LoginButton.java:94)
E/TiUncaughtHandler( 2004): at ti.modules.titanium.facebook.LoginButton$4.logout(LoginButton.java:136)
E/TiUncaughtHandler( 2004): at ti.modules.titanium.facebook.FacebookModule.fireLoginChange(FacebookModule.java:417)
E/TiUncaughtHandler( 2004): at ti.modules.titanium.facebook.FacebookModule.completeLogout(FacebookModule.java:313)
E/TiUncaughtHandler( 2004): at ti.modules.titanium.facebook.SessionListener.onLogoutFinish(SessionListener.java:37)
E/TiUncaughtHandler( 2004): at ti.modules.titanium.facebook.SessionEvents.onLogoutFinish(SessionEvents.java:115)
E/TiUncaughtHandler( 2004): at ti.modules.titanium.facebook.FacebookModule$LogoutRequestListener.onComplete(FacebookModule.java:450)
E/TiUncaughtHandler( 2004): at com.facebook.android.AsyncFacebookRunner$1.run(AsyncFacebookRunner.java:82)
D/TiApplication( 2004): (Thread-61) [13,223987] Analytics Event: type=
(from [5c05db961b8fb19e61f8a98f45e08ab0779dd6c3]) [#2922 state:fixed-in-qa] Cleanup Facebook session state listeners orphaned by a torn down login button so they don't go all wild and start firin' outta turn and what not. https://github.com/appcelerator/titanium_mobile/commit/5c05db961b8fb19e61f8a98f45e08ab0779dd6c3"> https://github.com/appcelerator/titanium_mobile/commit/5c05db961b8f...
verified working on Nexus S / 2.3.2