Skip to content

Commit 85fc678

Browse files
committed
Bug Fix - null object exception if without this line
datasource.open() to avoid null object exception
1 parent eb169db commit 85fc678

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

de.vogella.android.sqlite.first/src/de/vogella/android/sqlite/first/TestDatabaseActivity.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public void onCreate(Bundle savedInstanceState) {
1717
setContentView(R.layout.main);
1818

1919
datasource = new CommentsDataSource(this);
20+
datasource.open();
2021

2122
List<Comment> values = datasource.getAllComments();
2223

0 commit comments

Comments
 (0)