O pessoal do guuj!
eu to com um erro, que acho que eh um bug do WTK, nao eh certeza.
agent.searchServices(null, uuidset, rd[index], this);
na chamada do metodo acima, ou seja, quando eu escolho um dispositivo bluetooth, mas esse dispositivo não possui o servico que eu procuro, gera o seguinte erro:
java.lang.NullPointerException
at com.sun.kvem.jsr082.bluetooth.DataL2CAPReaderWriter.<init>(DataL2CAPReaderWriter.java:50)
at com.sun.kvem.jsr082.bluetooth.SDPClient$SDPTransport.start(SDPClient.java:283)
at com.sun.kvem.jsr082.bluetooth.SDPClient.openTransport(SDPClient.java:102)
at com.sun.kvem.jsr082.bluetooth.SDPClient.open(SDPClient.java:183)
at com.sun.kvem.jsr082.bluetooth.SDPClient.<init>(SDPClient.java:68)
at com.sun.kvem.jsr082.bluetooth.ServiceSearcher.start(ServiceSearcher.java:76)
at com.sun.kvem.jsr082.bluetooth.DiscoveryAgentImpl.searchServices(DiscoveryAgentImpl.java:225)
at javax.bluetooth.DiscoveryAgent.searchServices(DiscoveryAgent.java:259)
at ffalpha02.MainMidlet.commandAction(MainMidlet.java:401)
....
Gostaria de saber, provavelmente mtos devem ter cado em um erro desses ne, como que devo fazer pra contornar esse erro?
thx!