android studio 在查询获得cursor时,程序会直接闪退到初始页面

public String Getword() {//连接数据库,使用游标,得到单词
String english=null;
helper = new PictureDataHelper(this);
db = helper.getReadableDatabase();
Cursor cursor = db.query(null, new String[]{"Picture"}, null, null, null, null, null, null);
if (cursor.moveToPosition(position)) {
english = cursor.getString(2);
position++;
}
return english;
}

    是不是可能因为我使用的是外部的数据库的原因,还是其他什么原因?

https://blog.csdn.net/pku_coder/article/details/80405507

用第三方的依赖库吧,GreenDao