Smack on Androïd

Hi,

i make a program on Android with the librairy smack.

It’s work when i want to connect the server, easy !

but when i want t get the ServiceDiscoveryItem , i’ve an NullPointerException

i didn’t unserstand!

thank you very much !

i forget to say where is the error :

it is this function => discoverItems(

i discovered that the error is here :

smack 3.0.4 :

smack/XMPPConnection.java

if (isFirstInitialization) {

// Notify listeners that a new connection has been established

for (ConnectionCreationListener listener : connectionEstablishedListeners) {

listener.connectionCreated(this); <== in this line

}

}

can you explain me, what i can do ?