Hi All,
I'm accessing mysql database from my java bluetooth application,
every thing upto device descovery is ok.. my application is also showing the
name of detected device but in serviceSearchCompleted() method i'm writing following code

public void serviceSearchCompleted(int transID, int respCode)
{
//System.err.println("Service Search Completed");
if(testurl!=null)
{
String address=((RemoteDevice)rd_vector.elementAt(R_Devic e_Cnt-1)).getBluetoothAddress();

//m.outSystem.out.println("Current Device: "+address);
try
{
ResultSet rs=null;
String query2 = "select bt_address from bt_device where bt_address='"+address+"'";
//System.out.println("here 1");
Statement smt2= null;
System.out.println("Test Url :"+testurl);
System.out.println("Address is :"+address);
System.out.println("in database");
//System.out.println("here 2");

smt2= con.createStatement(); //line 411
// System.out.println("here 3");
rs=smt2.executeQuery(query2);
//System.out.println("here 4");
if(rs.next())
{

//System.out.println("here 5");

String add= rs.getString("bt_address");
if(add.equals(address))
{
servicediscovery dd=new servicediscovery();
}

}
else
{
System.out.println("Before Push");
ObjectPush();
}

}
catch(SQLException se)
{
System.out.println("Sql exception : in create statement"+se.toString());
}


}
else
{
servicediscovery dd=new servicediscovery();
}

}


here i'm getting exception as:


Exception in thread "SearchServicesThread-1" java.lang.NullPointerException
Address is :001F01A5ADF2
at BluetoothObexData_F.BluetoothObex$servicediscovery .serviceSearchCompleted(BluetoothObex.java:411)
in database
at com.intel.bluetooth.SearchServicesThread.run(Searc hServicesThread.java:159)



i'm not getting what this problem is,
any help will be greatly appreciated..