[Solved] I pass a string -> NullPointerException [duplicate]

[ad_1]

titlelist is not initialized.

You need to initialize it prior to assigning Strings to it :

String[] titlelist = new String[titles.size()]; // assuming Elements has a size() method

1

[ad_2]

solved I pass a string -> NullPointerException [duplicate]