Hi,
I have to go through Java Object array list string.
I do this in java:
List <String> stocklist = new ArrayList <String> ();
stockList.add ("stock1");
stockList.add ("stock2");
stockList.add ("stock3");
stockList.add ("stock4");
stockList.add ("stock5");
stockList.add ("stock6");
MA.setFields (stockist);
In b4A I write:
Dim stockList As List
stockList.Initialize()
stockList.add("stock1")
stockList.add("stock2")
stockList.add("stock3")
stockList.add("stock4")
stockList.add("stock5")
stockList.add("stock6")
fb.RunMethod("setFields", Array As Object(stockList) )
But I have this error:
Caused by: java.lang.NullPointerException: Attempt to read from null array
How can I call this function? I need a different object?
Francesco
I have to go through Java Object array list string.
I do this in java:
List <String> stocklist = new ArrayList <String> ();
stockList.add ("stock1");
stockList.add ("stock2");
stockList.add ("stock3");
stockList.add ("stock4");
stockList.add ("stock5");
stockList.add ("stock6");
MA.setFields (stockist);
In b4A I write:
Dim stockList As List
stockList.Initialize()
stockList.add("stock1")
stockList.add("stock2")
stockList.add("stock3")
stockList.add("stock4")
stockList.add("stock5")
stockList.add("stock6")
fb.RunMethod("setFields", Array As Object(stockList) )
But I have this error:
Caused by: java.lang.NullPointerException: Attempt to read from null array
How can I call this function? I need a different object?
Francesco