Re: loading variable from native method

2009-06-22 Thread daim
her's my problem: JsArrayOverlayData db = new DatenbankOverlayData(data.php); if(db.getData() == null) System.err.println(getData() is null!); and everytime i get: getData() is null! her's my class: public class DatenbankT extends JavaScriptObject { private String phpURL =

Re: loading variable from native method

2009-06-22 Thread waf
Hi daim You are not taking into account the asynchronious nature of the request that you use to initialize the Databank.dataArray. When the constructor returns dataArray is null until request completes so prepature access to the dataArray gives you null. -- waf