[TIMOB-2714] Android: FB Connect Button inside function breaks with NPE
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2017-06-08T19:53:15.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | n/a |
Reporter | Leo Acevedo |
Assignee | Ingo Muschenetz |
Created | 2011-04-15T03:27:38.000+0000 |
Updated | 2017-06-08T19:53:15.000+0000 |
Description
The description of the problem and a test can be found http://developer.appcelerator.com/question/95021/android-fb-connect-button-inside-function-breaks-with-null-pointer-exception">
here, but basically it's a Facebook login button that kills the
app when it logs in or out.
The button belongs to a window that was created from inside a
function, like this:
function makeWin() {
var win = Ti.UI.createWindow({ properties });
// add elements and events to win
return win;
}
AFAIK his is the only particularity of the FB button, and as in my understanding there should be no reason for it to fail, because event functions have access to the closure of makeWin()... So potentially there might be a JS bug behind this.
I forgot to say that this happened to me on the emulator for Linux, using APIs 1.6 and TI Mobile SDK 1.5.1.
Closing ticket due to time passed and lack of input or progress in the past few years.