Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2714] Android: FB Connect Button inside function breaks with NPE

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2017-06-08T19:53:15.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterLeo Acevedo
AssigneeIngo Muschenetz
Created2011-04-15T03:27:38.000+0000
Updated2017-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.

Comments

  1. Leo Acevedo 2011-04-15

    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.

  2. Lee Morris 2017-06-08

    Closing ticket due to time passed and lack of input or progress in the past few years.

JSON Source