there is a nullpointerexception error. error line is if (!temp4.equals(null)) {
.
I want to remove null data in db when I convert into an array. please help me.
String[] celement4array=new String[cc.getCount()];
int b=0;
for (cc.moveToFirst(); !cc.isAfterLast(); cc.moveToNext()) {
String temp4 = cc.getString(cc.getColumnIndex("element4"));
if (!temp4.equals(null)) {
celement4array[b]=temp4;
b++;
}
}