Android 查询中索引1处的绑定值是否为空?

Android 查询中索引1处的绑定值是否为空?,android,sqlite,Android,Sqlite,我在以下查询中得到“索引1处的绑定值为null”: public String searchForWifiSSID(String one, String two){ c = db.query(Constants.TABLE_NAME, new String[]{Constants.PARAM1, Constants.PARAM2}, Constants.PARAM1 + " =? " +" AND " + Constants.PARAM2 + " =? ", new String[]{one,t

我在以下查询中得到“索引1处的绑定值为null”:

public String searchForWifiSSID(String one, String two){
c = db.query(Constants.TABLE_NAME, new String[]{Constants.PARAM1, Constants.PARAM2}, Constants.PARAM1 + " =? " +" AND " + Constants.PARAM2 + " =? ", new String[]{one,two}, null, null, null);
}
我的SelectionAgs语法不正确吗?仅仅做以下事情是否不正确:

  public String searchForWifiSSID(String one, String two){
    c = db.query(Constants.TABLE_NAME, new String[]{Constants.PARAM1, Constants.PARAM2}, Constants.PARAM1 + " = " + one +" AND " + Constants.PARAM2 + " = " + two, null, null, null, null);
    }
确保值“一”和“二”不为空。我相信这个错误意味着其中一个值是空的