this is my code :
String sqlcomment="SELECT createdBy, text, documentPath, editedDate, actualityCommentID, actualityID FROM ActualityComment WHERE actualityID="+actual.getCode();
Cursor curcomment;
SQLiteDatabase dbase = openOrCreateDatabase("leymaxdb.sqlite",SQLiteDatabase.CREATE_IF_NECESSARY,null);
curcomment = dbase.rawQuery(sqlcomment, null);
int maxid=0;
if (curcomment.moveToFirst()) {
do
{
System.out.println(curcomment.getString(3).toString());
}while (curcomment.moveToNext());
}
dbase.close();
the error is in this line because i need to print editedDate from database and this is DateTime
System.out.println(curcomment.getString(3).toString());
And this is the android error :
java.lang.NullPointerException